Linux Ask!

Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.

Sep 302011

List all active guest domains in Xen


To list all active guest domains in Xen, you can use the xm list command.

# xm list

Name                                ID  Mem(MiB)   VCPUs      State      Time(s)
Domain-0                            0     768       2         r-----     1029.3
Web-server                         12     256       1         -b----       13.7
Feb 182011

SIOCSIFADDR: No such device after cloning VM


When you cloned a VM from another machine, or migrated from another VM solution such as Xen, when you start the networking, you might encounter the problem of "SIOCSIFADDR: No such device eth0".

This is because the MAC address of your VM has changed!

To solve it, just enter the command below:

# sudo rm /etc/udev/rules.d/70-persistent-net.rules

Restart your VM and should be okay now.

Jan 042011

Cannot start VirtualBox when installed KVM


When you have installed the KVM module, it will conflict with your VirtualBox. To solve it in order to use the VirtualBox, execute the following command below:

1. For Intel CPU

# sudo rmmod kvm-intel

2. For AMD CPU

# sudo rmmod kvm-amd

Then you can start VirtualBox instance normally.

Apr 102007

Making ntp works in Xen domU


In Xen, the clocks of all VMs are controlled by dom0, in order to make ntp work independently, you can edit the file "/etc/sysctl.conf"

xen.independent_wallclock = 1

Restart your server to take effects.