Douglas Russell
2012-Oct-29 10:53 UTC
[libvirt-users] virtual machine seems to run, but can't connect to it
I'm using ubuntu 12.04LTS I setup a bridged network: # The loopback network interface auto lo iface lo inet loopback # The primary network interface auto eth0 iface eth0 inet dhcp auto br0 iface br0 inet dhcp bridge_ports eth0 bridge_stp off bridge_fd 0 bridge_maxwait 0 Seems to work. Then I created a virtual machine using Ubuntu's vmbuilder tool like so: vmbuilder kvm ubuntu \ --suite 'precise' \ --flavour 'virtual' \ --arch 'amd64' \ --dest 'myvm' \ --hostname 'myvm' \ --mem '2048' \ --rootsize '4096' \ --swapsize '1024' \ --mirror 'http://archive.ubuntu.com/ubuntu' \ --name 'MyName' \ --user 'myuser' \ --pass 'password' \ --bridge 'br0' \ --addpkg acpid \ --addpkg vim \ --addpkg openssh-server \ --addpkg avahi-daemon \ --libvirt 'qemu:///system' \ --ip '192.168.0.100' It generates fine and starts up seemingly without a problem as well when I run virsh start myvm I am then able to resolve it's IP with MDNS and try ping myvm.local So presumably the VM is running? But for some reason I can't communicate with it, I can't SSH in, I don't even get a response to my ping. Any ideas? I'd be happy to provide further information. Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20121029/51904e60/attachment.htm>
Hristo Deshev
2012-Oct-29 20:16 UTC
[libvirt-users] virtual machine seems to run, but can't connect to it
On 10/29/2012 12:53 PM, Douglas Russell wrote:> |...| > > So presumably the VM is running? But for some reason I can't > communicate with it, I can't SSH in, I don't even get a response to my > ping. > > Any ideas? I'd be happy to provide further information. >I usually troubleshoot issues like that by configuring a VNC display and using a VNC client to attach to my VM's "screen". Most of the time it's me somehow borking the Linux install and as a result the machine refusing to boot. Best, Hristo -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20121029/5d05555e/attachment.htm>
Douglas Russell
2012-Oct-30 11:57 UTC
[libvirt-users] virtual machine seems to run, but can't connect to it
Thanks, I just figured it out. It turns out that my institution issues 192. addresses to MAC addresses it doesn't recognize. I had not realized this so assumed that the IP address was coming from the VM setup somehow. Onto the next problem now! But I'll post separately about that. Thanks for the help On 30 October 2012 04:11, Rudy Godoy <rudy at stone-head.org> wrote:> On Mon, Oct 29, 2012 at 10:53:29AM +0000, Douglas Russell wrote: > > I'm using ubuntu 12.04LTS > > > > I setup a bridged network: > > > > <snip> > > > > > It generates fine and starts up seemingly without a problem as well when > I > > run > > > > virsh start myvm > > > > I am then able to resolve it's IP with MDNS and try > > > > ping myvm.local > > > > So presumably the VM is running? But for some reason I can't communicate > > with it, I can't SSH in, I don't even get a response to my ping. > > > > What does displays: > # virsh dominfo myvm > > Can you connect to the console? > > # virsh console myvm > > regards > > > -- > Rudy Godoy > http://stone-head.org >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20121030/edc7f838/attachment.htm>