[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt-users] Checking if the VM has been created



On 11/16/11 08:28, Till Mossakowski wrote:
Am 16.11.2011 14:46, schrieb William A. Mahaffey III:

The route command on the host will show the newly added routes for the
VM. Also, tail your syslog file & you will see messages about every 15
min. from dnsmasq w/ the IP adder. of the VM.

route just shows the bridge, the individual IP of the VM is only shown in the syslog. However, this is just a workaround, and does not provide reliable identification of the IP if there are many VMs. libvirt resp. virsh should provide a way of obtaining the IP directly from the domain name.

Best, Till





output from 'route -CFvnee' as root on my host attached, 4th line in file shows IP addr of my VM, visible in other lines as well ....



& I definitely agree that virsh *should* show that info :-) ....


--

	William A. Mahaffey III

 ----------------------------------------------------------------------

	"The M1 Garand is without doubt the finest implement of war
	 ever devised by man."
                           -- Gen. George S. Patton Jr.

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface    MSS   Window irtt
192.168.0.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0     0     0      0
192.168.122.0   0.0.0.0         255.255.255.0   U     0      0        0 virbr0   0     0      0
169.254.0.0     0.0.0.0         255.255.0.0     U     1002   0        0 eth0     0     0      0
0.0.0.0         192.168.0.254   0.0.0.0         UG    0      0        0 eth0     0     0      0
Kernel IP routing cache
Source          Destination     Gateway         Flags Metric Ref    Use Iface    MSS   Window irtt  TOS HHRef HHUptod     SpecDst
192.168.122.213 192.168.122.255 192.168.122.255 ibl   0      0    11041 lo       0     0      0     0   -1    0     192.168.122.1
192.168.0.4     192.168.0.255   192.168.0.255   ibl   0      0    20338 lo       0     0      0     0   -1    0       192.168.0.9
192.168.122.1   192.168.122.255 192.168.122.255 bl    0      0    11041 virbr0   1500  0      0     0   2     1     192.168.122.1
192.168.122.213 192.168.122.1   192.168.122.1   il    0      0        1 lo       0     0      0     0   -1    0     192.168.122.1
192.168.0.9     192.168.0.6     192.168.0.6           0      0        1 eth0     1500  0      0     0   -1    0       192.168.0.9
192.168.0.9     192.168.0.4     192.168.0.4           0      0     3930 eth0     1500  0      44    0   4     1       192.168.0.9
192.168.0.9     192.168.0.4     192.168.0.4           0      7       10 eth0     1500  0      64    10  4     1       192.168.0.9
192.168.0.17    192.168.0.255   192.168.0.255   ibl   0      0        0 lo       0     0      0     0   -1    0       192.168.0.9
192.168.122.1   192.168.122.213 192.168.122.213       0      0        0 virbr0   1500  0      0     0   3     0     192.168.122.1
192.168.0.9     192.168.0.4     192.168.0.4           0      0     8077 eth0     1500  0      0     0   4     1       192.168.0.9
192.168.0.9     192.168.0.255   192.168.0.255   bl    0      0    17593 eth0     1500  0      0     0   3     1       192.168.0.9
192.168.0.9     192.168.0.15    192.168.0.15          0      0     3716 eth0     1500  0      32    0   3     0       192.168.0.9
0.0.0.0         224.0.0.1       224.0.0.1       ml    0      0    15844 lo       0     0      0     0   -1    0     192.168.122.1
192.168.0.9     192.168.0.255   192.168.0.255   bl    0      0        0 eth0     1500  0      0     0   3     1       192.168.0.9
192.168.0.4     192.168.0.9     192.168.0.9     il    0      0        0 lo       0     0      0     0   -1    0       192.168.0.9
192.168.0.4     192.168.0.9     192.168.0.9     il    0      0     1000 lo       0     0      0     10  -1    0       192.168.0.9
192.168.0.9     192.168.0.6     192.168.0.6           0      0     8513 eth0     1500  0      0     0   -1    0       192.168.0.9
192.168.0.9     192.168.0.15    192.168.0.15          0      0     8292 eth0     1500  0      0     0   3     0       192.168.0.9
192.168.0.15    192.168.0.9     192.168.0.9     il    0      0   4694564 lo       0     0      0     0   -1    0       192.168.0.9
192.168.122.1   192.168.122.213 192.168.122.213       0      1        7 virbr0   1500  0      25    10  3     0     192.168.122.1
127.0.0.1       127.0.0.1       127.0.0.1       l     0      0        0 lo       16436 0      0     0   -1    0         127.0.0.1
192.168.0.15    192.168.0.255   192.168.0.255   ibl   0      0    16529 lo       0     0      0     0   -1    0       192.168.0.9

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]