1

I am trying configure libvirtd for Xen default operation. I need to edit this file:

/etc/libvirt/libvirt.conf

I am new in ubuntu.

Thank u

E Tab
  • 17
  • 1
  • 2
  • 7

1 Answers1

2
  1. Edit the file: sudo vim /etc/libvirt/libvirt.conf.
  2. Navigate to the desired text using your arrow keys.
  3. Press i to go into insert mode, and edit the configuration.
  4. When done editing, press ESC and save the file by entering :wq

After saving the file, make sure to either restart libvirtd, or reboot your system.

I believe what you're looking to change is the line #uri_default = "qemu:///system". Uncomment that line first, then replace "qemu" by "xen" so that the whole line should read uri_default = "xen:///system".

Note: It is always a good idea to take backups of configuration files before editing. In this case, sudo cp /etc/libvirt/libvirt.conf /etc/libvirt/libvirt.conf.bkp should do the trick, should you ever need to recover that file.

If you're new to Linux, here's a good tutorial on vim.

baalali
  • 36