LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Virtualization and Cloud (http://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/)
-   -   issues accessing ip/ethernet after using virt clone to create kvm host (http://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/issues-accessing-ip-ethernet-after-using-virt-clone-to-create-kvm-host-897468/)

bluerfoot 08-15-2011 04:35 PM

issues accessing ip/ethernet after using virt clone to create kvm host
 
hi, I am trying to setup some kvm (centos guests running on fedora 15)to use as a test learning environment. I have made a network called network1 and have it setup not to hand out dhcp. I setup a centos vm and using virt-manager was able to get into the machine, setup ip settings (ip, gateway, dns etc) and it works great. I then clone the machine using virt clone and I boot the new machine.

The issue is that I cannot ssh into the machine without an ip address and it appears that virt-clone does not bring the ip address/ethernet information across. So I have no machine to ssh to. I don't want to use virt-viewer because I am at work using a remote machine and I can't download x server or vnc server.

So is there a way to access a cloned machine that does not have an ip address without using virt-manager? Or on the other hand is there a way to specify an ip address when cloning a machine? again the cloning process does not seem to clone ip information.

thanks in advance.

smoothdog 08-19-2011 12:34 AM

Tried a virtual serial port?
 
The linux kernel allows you to connect the console to a serial port. Not sure if it's possible to configure your KVM to provide a virtual serial port and connect the linux console to it with a console=/dev/ttyS0 or something similar? Then it's a simple telnet connection to the host.

bluerfoot 08-19-2011 09:46 AM

Quote:

Originally Posted by smoothdog (Post 4447360)
The linux kernel allows you to connect the console to a serial port. Not sure if it's possible to configure your KVM to provide a virtual serial port and connect the linux console to it with a console=/dev/ttyS0 or something similar? Then it's a simple telnet connection to the host.

Thanks I got that working a few days ago already and am now on to why the ethernet does not seem to work (get message "device wth0 does not seem to be present, delaying initialization although /etc/sysconfig-network-scripts does have an ifcfg-eth0.).


All times are GMT -5. The time now is 04:39 PM.