Re: [CentOS-virt] Network Bridgeing
You need to add eth0 to the bridge (br0) which you already did. But do NOT assign an IP address to eth0. Instead, assign the host's IP to br0. Then just use another of your IPs for your VM (which can also be called eth0 inside your VM). This way your host and your VM(s) can communicate with each other via the bridge. Note: If you want to use more than one IP address to access your host, then create alias interfaces on the host for the bridge such as br0:0, br0:1, etc. Do not create alias interfaces on eth0. Also do not create an alias interface on your host for the IP(s) which you'll be using inside your VM(s). I hope this helps. On 6/9/2014 2:30 AM, Ing. Ramon Resendiz wrote: Hi, I have the following issue i recently installed a VM with qemu and libvirtd, everything is almost ok. The problem is that i have 5 usable IP address (valid ip address on internet) for eth0, and i want to use one of this IP for my VM (Windows 2008 Standard R2 by the way). I did the bridge between my eth0 and br0, the VM could browse into internet and download patches, etc. etc. I tried to use a networking alias, this is the network interface eth0 assign a IP address and for the eth0:1 assign other IP address, and this bridged to the br0 instead of eth0 to eth0:1; after restart the network service the connectivity lost, and then get in back the original configuration everything seems to work again. But my goal is not archived. Goal: eth0 must have a valid ip address to be accesed, eth0:1 (bridged to br0) must have a valid address to be assigned to the VM. Through iptables assign ACL to each IP address (valid IP address) depending of the services to host (web server and db server, rdp host) and between interfaces could be possible to communicate between them (virtual host and virtual machine). eth0: Virtual Host eth0:1: Virtual machine (bridged to br0) Thank you very much for you time. Best regards, RR ___ CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt ___ CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt
[CentOS-virt] Problem with X on VM
I've got a Centos 5 server with Xen installed. I'm trying to install a Centos 6.5 VM on it but once all is installed, the X window will not sync or display. I think I understand that it's probably due to the settings on the vnc stuff. I've got Centos 6.2 VMs that act just fine. Is there a way I can modify the VM's screen settings either during installation or after installation? Hope that makes sense. Thanks steve campbell ___ CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt
Re: [CentOS-virt] Windows 7 on a centos kvm host pauses after the installation reboot.
On Sun, June 8, 2014 19:21, Eliezer Croitoru wrote: I am using Centos 6.5 as a kvm hypervisor with local ssd disks in raid and with glusterfs based storage for couple disk images. I have tried to install Windows 7 from ISO and it seems to pass the first stage of the installation which installs the basic files and also the first reboot. After that the installation is almost finished and the desktop should be up and running after a reboot but instead the Windows 7 machine gets paused before windows shows the windows 7 logo at the boot sequence. I have tried to find for a record of the issue in the past but found only tiny records which I did not understood from, if it was solved or not. The kvm host has 16GB of ram and 100GB of disk space. For this specific host I have used a disk image ontop of glusterfs but the same happens ontop of glusterfs and ontop of local disks. I have an ubuntu kvm host with less RAM and I can install windows server 2012 (which I was unable to install on the Centos 6.5 kvm host both 2012 + windows 8 + windows 7). Two things: If anyone had or has the same issue please notify me. If anyone has a solution please share it. Thanks, Eliezer 1. Is there a CD/DVD drive associated with the VM? 2. If so, do you have a readable optical disk in the drive when starting the Windows7 guest? If the answer to 1 is yes and to 2 is no and your guest configuration file shows this: 30 disk type='block' device='cdrom' 31 driver name='qemu' type='raw'/ 32 source dev='/dev/sr0'/ 33 target dev='hdc' bus='ide'/ 34 readonly/ 35 address type='drive' controller='0' bus='1' target='0' unit='0'/ 36 /disk then remove the line 'source dev='/dev/sr0'/' and try again. HTH. -- *** E-Mail is NOT a SECURE channel *** James B. Byrnemailto:byrn...@harte-lyne.ca Harte Lyne Limited http://www.harte-lyne.ca 9 Brockley Drive vox: +1 905 561 1241 Hamilton, Ontario fax: +1 905 561 0757 Canada L8E 3C3 ___ CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt
Re: [CentOS-virt] Problem with X on VM
What vnc are you using? On Mon, Jun 9, 2014 at 9:40 AM, Steve Campbell campb...@cnpapers.com wrote: I've got a Centos 5 server with Xen installed. I'm trying to install a Centos 6.5 VM on it but once all is installed, the X window will not sync or display. I think I understand that it's probably due to the settings on the vnc stuff. I've got Centos 6.2 VMs that act just fine. Is there a way I can modify the VM's screen settings either during installation or after installation? Hope that makes sense. Thanks steve campbell ___ CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt ___ CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt
Re: [CentOS-virt] Windows 7 on a centos kvm host pauses after the installation reboot.
Hey James, I do not have any optical device associated with the VM. What I tried and worked was to update the OS and also the kernel. Since I did an update from 2.6.X base repo kernel to elrepo lt kernel and Centos basic updates and then a reboot it was all resolved. I do not know the reason but it seems like the updated system solved the issue. Thanks, Eliezer On 06/09/2014 04:41 PM, James B. Byrne wrote: 1. Is there a CD/DVD drive associated with the VM? 2. If so, do you have a readable optical disk in the drive when starting the Windows7 guest? If the answer to 1 is yes and to 2 is no and your guest configuration file shows this: 30 disk type='block' device='cdrom' 31 driver name='qemu' type='raw'/ 32 source dev='/dev/sr0'/ 33 target dev='hdc' bus='ide'/ 34 readonly/ 35 address type='drive' controller='0' bus='1' target='0' unit='0'/ 36 /disk then remove the line 'source dev='/dev/sr0'/' and try again. HTH. -- *** E-Mail is NOT a SECURE channel *** James B. Byrne mailto:byrn...@harte-lyne.ca Harte Lyne Limited http://www.harte-lyne.ca 9 Brockley Drive vox: +1 905 561 1241 Hamilton, Ontario fax: +1 905 561 0757 Canada L8E 3C3 ___ CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt ___ CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt
Re: [CentOS-virt] Problem with X on VM
On 6/9/2014 9:50 AM, Mauricio Tavares wrote: On Mon, Jun 9, 2014 at 9:40 AM, Steve Campbell campb...@cnpapers.com wrote: I've got a Centos 5 server with Xen installed. I'm trying to install a Centos 6.5 VM on it but once all is installed, the X window will not sync or display. I think I understand that it's probably due to the settings on the vnc stuff. I've got Centos 6.2 VMs that act just fine. Is there a way I can modify the VM's screen settings either during installation or after installation? Hope that makes sense. Thanks I am a bit confused, so let me flood this with usuless info: 1. I use TigerVNC Viewer 2. I take you mean the vm client installation step works fine but after that things get interesting. 3. If I need to run GUI stuff inside a vm client, I run a vnc server in the said client and then do port forwarding. Also, you can then customize the vnc for that specific client. In fact, I like to keep the console I get from vort/libvirt text only and let vnc in client do the X11 thingie. steve campbell ___ CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt ___ CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt I use the default vnc that installs with Centos. I'm using the default client that is installed with the Centos 6 VM. I believe the default now is TigerVNC, which I think used to be TightVNC. The #2 above seems accurate to describe my problem. Again, I have a Centos 5 server with Xen on it. I'm trying to install a Centos 6 VM under that system. It's a fully virtuallized VM. I can install the system just fine, but when it's time to reboot and bring up the new VM , all I get is a bunch of garbage on the screen as if X11 can't start, over and over. I thought I read somewhere where this type of setup uses a vnc connection. Thanks steve ___ CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt
Re: [CentOS-virt] Problem with X on VM
I forgot to mention - I'm using Virtual Machine Manager to create the VM. All of the screen stuff is done by that. steve On 6/9/2014 11:47 AM, Steve Campbell wrote: On 6/9/2014 9:50 AM, Mauricio Tavares wrote: On Mon, Jun 9, 2014 at 9:40 AM, Steve Campbell campb...@cnpapers.com wrote: I've got a Centos 5 server with Xen installed. I'm trying to install a Centos 6.5 VM on it but once all is installed, the X window will not sync or display. I think I understand that it's probably due to the settings on the vnc stuff. I've got Centos 6.2 VMs that act just fine. Is there a way I can modify the VM's screen settings either during installation or after installation? Hope that makes sense. Thanks I am a bit confused, so let me flood this with usuless info: 1. I use TigerVNC Viewer 2. I take you mean the vm client installation step works fine but after that things get interesting. 3. If I need to run GUI stuff inside a vm client, I run a vnc server in the said client and then do port forwarding. Also, you can then customize the vnc for that specific client. In fact, I like to keep the console I get from vort/libvirt text only and let vnc in client do the X11 thingie. steve campbell ___ CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt ___ CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt I use the default vnc that installs with Centos. I'm using the default client that is installed with the Centos 6 VM. I believe the default now is TigerVNC, which I think used to be TightVNC. The #2 above seems accurate to describe my problem. Again, I have a Centos 5 server with Xen on it. I'm trying to install a Centos 6 VM under that system. It's a fully virtuallized VM. I can install the system just fine, but when it's time to reboot and bring up the new VM , all I get is a bunch of garbage on the screen as if X11 can't start, over and over. I thought I read somewhere where this type of setup uses a vnc connection. Thanks steve ___ CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt ___ CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt
Re: [CentOS-virt] Are xen and centos incompatible?
On Sat, Jun 07, 2014 at 02:44:54AM +0200, lee wrote: Hi, I'm trying to pass a physical network interface through to a domU. This seems to be impossible because the way xen wants to do it is incompatible with the way centos wants to do it. Huh? I followed documentation on http://www.xen-support.com/?p=151 and tried booting with 'pciback.permissive pciback.hide=(06:00.0)'. This gives a hint in dmesg kernel: xen-pciback: backend is vpci, and the device is still visible in dom0. So this obviously doesn't work. The device should be visible in the dom0 - even when it is for passthrough. But irrespective of that - the steps mentioned there are out of date. The correct option should be 'xen-pciback.hide=(06:00.0) xen-pciback.permissive=1' Following http://wiki.xen.org/wiki/Xen_PCI_Passthrough: which is mentioned in that link. [root@heimdall ~]# xl pci-assignable-add 06:00.0 xend is running, which may cause unpredictable results when using this xl command. Please shut down xend before continuing. (This check can be overridden with the -f option.) [root@heimdall ~]# There doesn't seem to be any documentation about what xend does or is for and how to pass a physical network interface through with it. Did you just try using the same parameter but replace 'xl' with 'xm'? I'm starting to think that using centos for a server os is an extremely bad choice because nothing works. It's not like a Linux distribution but like a mess of pieces from several unrelated puzzles thrown together randomly. -- Knowledge is volatile and fluid. Software is power. ___ CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt ___ CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt
Re: [CentOS-virt] Problem with X on VM
After installation: Why don't you SSH into the running guest from the host and change the X11 config files from the command prompt? If sshd is not running on your guest then you can try to stop (shutdown) the guest and use libguestfs to modify files inside the VM's disk. On 6/9/2014 3:40 PM, Steve Campbell wrote: I've got a Centos 5 server with Xen installed. I'm trying to install a Centos 6.5 VM on it but once all is installed, the X window will not sync or display. I think I understand that it's probably due to the settings on the vnc stuff. I've got Centos 6.2 VMs that act just fine. Is there a way I can modify the VM's screen settings either during installation or after installation? Hope that makes sense. Thanks steve campbell ___ CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt . ___ CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt
Re: [CentOS-virt] Problem with X on VM
On 6/9/2014 2:14 PM, Zoltan Frombach wrote: After installation: Why don't you SSH into the running guest from the host and change the X11 config files from the command prompt? If sshd is not running on your guest then you can try to stop (shutdown) the guest and use libguestfs to modify files inside the VM's disk. On 6/9/2014 3:40 PM, Steve Campbell wrote: I've got a Centos 5 server with Xen installed. I'm trying to install a Centos 6.5 VM on it but once all is installed, the X window will not sync or display. I think I understand that it's probably due to the settings on the vnc stuff. I've got Centos 6.2 VMs that act just fine. Is there a way I can modify the VM's screen settings either during installation or after installation? Hope that makes sense. Thanks steve campbell ___ CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt . I wasn't aware I could do the libguestfs thing. But I'll try both ways. Thanks steve ___ CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt
Re: [CentOS-virt] Problem with X on VM
On 6/9/2014 8:28 PM, Steve Campbell wrote: On 6/9/2014 2:14 PM, Zoltan Frombach wrote: After installation: Why don't you SSH into the running guest from the host and change the X11 config files from the command prompt? If sshd is not running on your guest then you can try to stop (shutdown) the guest and use libguestfs to modify files inside the VM's disk. On 6/9/2014 3:40 PM, Steve Campbell wrote: I've got a Centos 5 server with Xen installed. I'm trying to install a Centos 6.5 VM on it but once all is installed, the X window will not sync or display. I think I understand that it's probably due to the settings on the vnc stuff. I've got Centos 6.2 VMs that act just fine. Is there a way I can modify the VM's screen settings either during installation or after installation? Hope that makes sense. Thanks steve campbell ___ CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt . I wasn't aware I could do the libguestfs thing. But I'll try both ways. Thanks steve Try SSH first. If that doesn't work and want to try libguestfs then make sure you install a recent version of libguestfs on your host, your host OS is pretty old... See: http://libguestfs.org/guestfs-faq.1.html#binaries (and possibly read this: http://serverfault.com/questions/213609/how-to-install-libguestfs-guestfish-for-xen-on-centos-5-5 ) ___ CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt
Re: [CentOS-virt] Network Bridgeing
Hi Zoltan, I did the eth0 bridge to br0. As you explain i did the assignment the ip from eth0 to the br0 interface. And is working I could ping between interface from IP eth0 (br0) to VM and from VM to IP eth0. As well I tried to configure my VM with the valid IP address and the connectivity loss until I get back to the original configuration (dhcp). Here is my ifconfig output: br0 Link encap:Ethernet HWaddr 00:26:9E:XX:XX:XX inet addr:208.66.XX.XX Bcast:208.66.XX.XX Mask:255.255.255.248 inet6 addr: fe80::226:9eff:fe82:5538/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:8096 errors:0 dropped:0 overruns:0 frame:0 TX packets:10438 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:629208 (614.4 KiB) TX bytes:6818121 (6.5 MiB) eth0 Link encap:Ethernet HWaddr 00:26:9E:XX:XX:XX inet6 addr: fe80::226:9eff:fe82:5538/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:6768417 errors:0 dropped:0 overruns:0 frame:0 TX packets:1952736 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:9696354264 (9.0 GiB) TX bytes:305746274 (291.5 MiB) Memory:df6e-df70 eth0:1Link encap:Ethernet HWaddr 00:26:9E:XX:XX:XX UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:6 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 b) TX bytes:468 (468.0 b) Memory:df6e-df70 eth1 Link encap:Ethernet HWaddr 00:26:9E:XX:XX:XX UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) Memory:df66-df68 loLink encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:312493 errors:0 dropped:0 overruns:0 frame:0 TX packets:312493 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:188275585 (179.5 MiB) TX bytes:188275585 (179.5 MiB) virbr0Link encap:Ethernet HWaddr 52:54:00:ED:EC:C7 inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:67131 errors:0 dropped:0 overruns:0 frame:0 TX packets:110832 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:4087482 (3.8 MiB) TX bytes:163016646 (155.4 MiB) vnet0 Link encap:Ethernet HWaddr FE:54:00:85:AE:AF inet6 addr: fe80::fc54:ff:fe85:aeaf/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:2735 errors:0 dropped:0 overruns:0 frame:0 TX packets:54661 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:500 RX bytes:292355 (285.5 KiB) TX bytes:2884496 (2.7 MiB) Here is my brctrl show: bridge name bridge id STP enabled interfaces br0 8000.00269e825538 no eth0 virbr0 8000.525400edecc7 yes virbr0-nic vnet0 Here is my vm network config (Windows Server 2003 Standard x64): Windows IP Configuration DHCP: Yes IP Address: 192.168.122.77 Subnet Mask: 255.255.255.0 Default Gateway: 192.168.122.1 DHCP Server: 192.168.122.1 DNS Server: 192.168.122.1 De: centos-virt-boun...@centos.org [mailto:centos-virt-boun...@centos.org] En nombre de Zoltan Frombach Enviado el: lunes, 09 de junio de 2014 01:03 a.m. Para: Discussion about the virtualization on CentOS Asunto: Re: [CentOS-virt] Network Bridgeing You need to add eth0 to the bridge (br0) which you already did. But do NOT assign an IP address to eth0. Instead, assign the host's IP to br0. Then just use another of your IPs for your VM (which can also be called eth0 inside your VM). This way your host and your VM(s) can communicate with each other via the bridge. Note: If you want to use more than one IP address to access your host, then create alias interfaces on the host for the bridge such as br0:0, br0:1, etc. Do not create alias interfaces on eth0. Also do not create an alias interface on your host for the IP(s) which you'll be using inside your VM(s). I hope this helps. On 6/9/2014 2:30 AM, Ing. Ramon Resendiz wrote: Hi, I have the following issue i recently installed a VM with qemu and libvirtd, everything is almost ok. The
Re: [CentOS-virt] Are xen and centos incompatible?
Konrad Rzeszutek Wilk konrad.w...@oracle.com writes: On Sat, Jun 07, 2014 at 02:44:54AM +0200, lee wrote: Hi, I'm trying to pass a physical network interface through to a domU. This seems to be impossible because the way xen wants to do it is incompatible with the way centos wants to do it. Huh? I followed documentation on http://www.xen-support.com/?p=151 and tried booting with 'pciback.permissive pciback.hide=(06:00.0)'. This gives a hint in dmesg kernel: xen-pciback: backend is vpci, and the device is still visible in dom0. So this obviously doesn't work. The device should be visible in the dom0 - even when it is for passthrough. Why should it be visible when it's hidden? But irrespective of that - the steps mentioned there are out of date. The correct option should be 'xen-pciback.hide=(06:00.0) xen-pciback.permissive=1' That's one of the problems: Xen is very poorly documented. I replaced centos with debian and finally got it to work. Things are much easier with debian. Following http://wiki.xen.org/wiki/Xen_PCI_Passthrough: which is mentioned in that link. [root@heimdall ~]# xl pci-assignable-add 06:00.0 xend is running, which may cause unpredictable results when using this xl command. Please shut down xend before continuing. (This check can be overridden with the -f option.) [root@heimdall ~]# There doesn't seem to be any documentation about what xend does or is for and how to pass a physical network interface through with it. Did you just try using the same parameter but replace 'xl' with 'xm'? I don't remember ... It seemed I had to use virsh since nothing else worked on centos, and virsh doesn't let you seem to get networking stuff to work. Centos and xen just don't go along with each other. The server is all on debian now. -- Knowledge is volatile and fluid. Software is power. ___ CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt