Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8134425
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T10:01:12+00:00 2026-06-06T10:01:12+00:00

I have installed KVM on my Ubuntu system. Using vmbuilder , I setup a

  • 0

I have installed KVM on my Ubuntu system. Using vmbuilder, I setup a linux VM. When I tried to access the console using virsh console vm command, I was getting an error. I tried to follow the solution but, I cannot seem to be able to make permanent changes whatsoever to the configuration file. I tried both manually editing the xml config file as well as using the virsh edit command. But after I edit the file and close it, if I reopen the config file using virsh edit again, I get back the original file without any of my edits.

Can some one tell me where I could be going wrong.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T10:01:13+00:00Added an answer on June 6, 2026 at 10:01 am

    First, make sure you have an XML file.

    Then, be sure you have no machine’s defined.

    virsh list --all
    

    If this returns any machines, run this on all of them.

    virsh undefine <machine>
    

    Now you should have a clear system.

    Now start editing your xml file for the machine you are trying to set up. Make sure it has a definition for a tty so you can connect to the console later on. There should under device exist a console or serial part. Don’t remember exactly.

    When the xml file is ready, you can define it.

    virsh define <path_to_xml>
    

    What it does is that it puts the xml inside virsh so now it is that copy that is actually used for the machine and not the xml file you have on disk. This means that any modifications of this file will not be reflected in virsh. You can still modify the xml but now in order to do so you need to either undefine and define it again or use.

    You can list the machines and check a specific machine’s configuration with those commands (the machine’s name is the one defined in the xml file).

    virsh list --all
    virsh edit <machine>
    

    Now start the machine

    virsh start <machine>
    

    It should say the machine has started and you should be able to connect to the machine using the console

    virsh console <machine>
    

    The previous two commands can be written as a single command which will put you on the console immediatly.

    virsh start <machine> --console
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have installed wxWidgets 2.9.3 on Ubuntu 10.10 using ../configure --with-gtk I am using
I have installed Clang by using apt-get in Ubuntu, and I can successfully compile
We have installed OpenDataKit (ODK) Aggregate and we are using a MySQL Database. I
I have installed Eclipse Indigo on Ubuntu 11.10, and the marketplace is not showing
I have installed Eclipse & CDT plugin on newly installed Ubuntu. The indexing is
I have installed rvm (mutiuser option) and ruby using rvm install on my test
I have installed mySQL using sudo apt-get install mySQL-server then i have installed libmysqlclient15-dev
I have installed tomcat 6 and 7 to the port 8080. I am using
Have installed Node version manager 'n'. Installed 'mocha' using n npm 0.6.4 install mocha
I have installed hadoop 1.0.1 in my ubuntu laptop by a deb install file.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.