[CentOS-virt] KVM backup
Hello I take backups while virtual machines are running live. For this, first I takes snapshot. Then I back up the original disk. But when I look at the snapshot list (1595157757,1595162592). I see that it is passive. I cannot delete them either. What would be the reason ? Name Creation Time State 1595157757 2020-07-19 14:22:37 +0300 disk-snapshot 1595162592 2020-07-19 15:43:12 +0300 disk-snapshot Error: error: Failed to delete snapshot 1595162592 error: unsupported configuration: deletion of 1 external disk snapshots not supported yet Thanks. ___ CentOS-virt mailing list CentOS-virt@centos.org https://lists.centos.org/mailman/listinfo/centos-virt
Re: [CentOS-virt] KVM networking issue
On Thu, Mar 24, 2016 at 4:30 PM, Kevin Rosswrote: > Thanks, Mike. When running tcpdump on the VM I'm not seeing traffic > unless it's explicitly intended for that particular VM, so no traffic > between the other VMs is getting forwarded from the virtual interface > to the "network appliance" VM. > > There is connectivity between the VMs on the private network and the > "network appliance" VM which is acting as a gateway. > > Here's the output of the brctl command: > > virbr1 > bridge id 8000.5254007e2f5b > designated root8000.5254007e2f5b > root port 0path cost > 0 > max age 19.99 bridge max age > 19.99 > hello time1.99 bridge hello time > 1.99 > forward delay 0.00 bridge forward delay > 0.00 > ageing time 299.95 > hello timer 0.29 tcn timer > 0.00 > topology change timer 0.00 gc timer > 0.29 > hash elasticity 4hash max > 512 > mc last member count 2mc init query count > 2 > mc router 1mc snooping > 1 > mc last member timer 0.99 mc membership timer > 259.96 > mc querier timer254.96 mc query interval > 124.98 > mc response interval 9.99 mc init query interval > 31.24 > flags > > > virbr1-nic (0) > port idstate > disabled > designated root8000.5254007e2f5b path cost > 100 > designated bridge 8000.5254007e2f5b message age timer > 0.00 > designated port8001forward delay timer > 0.00 > designated cost 0hold timer > 0.00 > mc router 1 > flags > > I'm not sure why virbr1-nic is showing up as disabled, and also why > That STP output says the virbr1-nic interface is disabled -- maybe your VM is powered off? > the vnet# interfaces don't show up (they do show up on another host, > although VMs on that host are having the same non-promiscuous issue as > these VMs). I've tried this with and without NAT, as well as with STP > on/off with no effect. > You'll need to enable IP forwarding and set rules to route the traffic for those VMs. http://www.linux-kvm.org/page/Networking#Routing_with_iptables The gotcha is that if you're not doing any IP routing on the KVM node, your "network appliance" VM needs to have one NIC bridged to your real network and the other as part of virbr1. You could NAT it on the KVM host as well. Read the KVM networking documentation as it will help you determine what configuration you have and if that's what you want. -- ---~~.~~--- Mike // SilverTip257 // ___ CentOS-virt mailing list CentOS-virt@centos.org https://lists.centos.org/mailman/listinfo/centos-virt
Re: [CentOS-virt] KVM networking issue
Thanks, Mike. When running tcpdump on the VM I'm not seeing traffic unless it's explicitly intended for that particular VM, so no traffic between the other VMs is getting forwarded from the virtual interface to the "network appliance" VM. There is connectivity between the VMs on the private network and the "network appliance" VM which is acting as a gateway. Here's the output of the brctl command: virbr1 bridge id 8000.5254007e2f5b designated root8000.5254007e2f5b root port 0path cost 0 max age 19.99 bridge max age19.99 hello time1.99 bridge hello time 1.99 forward delay 0.00 bridge forward delay 0.00 ageing time 299.95 hello timer 0.29 tcn timer 0.00 topology change timer 0.00 gc timer 0.29 hash elasticity 4hash max 512 mc last member count 2mc init query count2 mc router 1mc snooping1 mc last member timer 0.99 mc membership timer 259.96 mc querier timer254.96 mc query interval124.98 mc response interval 9.99 mc init query interval31.24 flags virbr1-nic (0) port idstate disabled designated root8000.5254007e2f5b path cost100 designated bridge 8000.5254007e2f5b message age timer 0.00 designated port8001forward delay timer0.00 designated cost 0hold timer 0.00 mc router 1 flags I'm not sure why virbr1-nic is showing up as disabled, and also why the vnet# interfaces don't show up (they do show up on another host, although VMs on that host are having the same non-promiscuous issue as these VMs). I've tried this with and without NAT, as well as with STP on/off with no effect. Thanks, Kevin ___ CentOS-virt mailing list CentOS-virt@centos.org https://lists.centos.org/mailman/listinfo/centos-virt
Re: [CentOS-virt] KVM networking issue
On Tue, Mar 22, 2016 at 1:57 PM, Kevin Rosswrote: > Hi Mike, > > Thanks for the info. I'd rather run monitoring such as tcpdump from > the VM if possible and not the host as a simulation of a network > Then run tcpdump on the VM. Same command or commands you'd have ran on the host node. > appliance and with the intent eventually of giving others access to > the VM and not the host. Here is the xml file for the private network: > > > > > virbr1 > > > > > > > > > There are two VMs connected to this interface, and the monitoring or > "appliance" VM is connected to both this and the external interface. I take it you've tried testing basic connectivity from the VMs to whatever default gateway is in place? I see Spanning Tree is enabled, so you might check that an interface isn't in the blocking state. brctl showstp | egrep '^(em|eth|vnet)|state' I don't use the NAT network mode for KVM, so hopefully someone else can chime in on that piece. -- ---~~.~~--- Mike // SilverTip257 // ___ CentOS-virt mailing list CentOS-virt@centos.org https://lists.centos.org/mailman/listinfo/centos-virt
Re: [CentOS-virt] KVM networking issue
Hi Mike, Thanks for the info. I'd rather run monitoring such as tcpdump from the VM if possible and not the host as a simulation of a network appliance and with the intent eventually of giving others access to the VM and not the host. Here is the xml file for the private network: virbr1 There are two VMs connected to this interface, and the monitoring or "appliance" VM is connected to both this and the external interface. Please let me know if I can provide more info that will be relevant. Thanks, Kevin On Tue, Mar 22, 2016 at 9:41 AM, Mike - st257wrote: > On Mon, Mar 21, 2016 at 1:33 PM, Kevin Ross wrote: >> >> Hi folks, >> >> I posted this question to the KVM list, but I thought I'd try here >> too--sorry if this is the wrong place to post this, can you please >> direct me to the correct forum or list if so, thanks! >> >> I'm working on a network security project, using KVM installed on >> CentOS 6.7 through yum. I have a VM with the goal of using this as a >> network appliance, and two other VMs, one simulating an attack node >> and the other simulating a vulnerable webapp. These are all connected >> to the same internal private network set up in KVM. The idea with the >> network appliance VM is to have it act as if it's connected to a >> network tap so it can see the traffic between the other two VMs. I'm >> not able to see the traffic currently and would appreciate your help >> or suggestions to see if this is possible and how I can set this up if > > > From the KVM host you should be able to point tcpdump at the vnetX > interfaces and sniff. > I've had to do this on occasion (with a bridged network setup) when a web > hosting VM was being brute forced. > >> >> so. I came across some information online suggesting to have the >> interfaces in promiscuous mode, including the virtual NIC for the >> private network, and I've tried all combinations. Thanks for any help >> you can offer! > > > Start by determining what interface your VM is attached to. > > We have no idea the network layout of your KVM set up for VMs either. > Look at the XML for your VM to determine which interface it's tied to. > > -- > ---~~.~~--- > Mike > // SilverTip257 // > > ___ > CentOS-virt mailing list > CentOS-virt@centos.org > https://lists.centos.org/mailman/listinfo/centos-virt > -- sede...@gmail.com ___ CentOS-virt mailing list CentOS-virt@centos.org https://lists.centos.org/mailman/listinfo/centos-virt
Re: [CentOS-virt] KVM networking issue
On Mon, Mar 21, 2016 at 1:33 PM, Kevin Rosswrote: > Hi folks, > > I posted this question to the KVM list, but I thought I'd try here > too--sorry if this is the wrong place to post this, can you please > direct me to the correct forum or list if so, thanks! > > I'm working on a network security project, using KVM installed on > CentOS 6.7 through yum. I have a VM with the goal of using this as a > network appliance, and two other VMs, one simulating an attack node > and the other simulating a vulnerable webapp. These are all connected > to the same internal private network set up in KVM. The idea with the > network appliance VM is to have it act as if it's connected to a > network tap so it can see the traffic between the other two VMs. I'm > not able to see the traffic currently and would appreciate your help > or suggestions to see if this is possible and how I can set this up if > >From the KVM host you should be able to point tcpdump at the vnetX interfaces and sniff. I've had to do this on occasion (with a bridged network setup) when a web hosting VM was being brute forced. > so. I came across some information online suggesting to have the > interfaces in promiscuous mode, including the virtual NIC for the > private network, and I've tried all combinations. Thanks for any help > you can offer! > Start by determining what interface your VM is attached to. We have no idea the network layout of your KVM set up for VMs either. Look at the XML for your VM to determine which interface it's tied to. -- ---~~.~~--- Mike // SilverTip257 // ___ CentOS-virt mailing list CentOS-virt@centos.org https://lists.centos.org/mailman/listinfo/centos-virt
[CentOS-virt] KVM networking issue
Hi folks, I posted this question to the KVM list, but I thought I'd try here too--sorry if this is the wrong place to post this, can you please direct me to the correct forum or list if so, thanks! I'm working on a network security project, using KVM installed on CentOS 6.7 through yum. I have a VM with the goal of using this as a network appliance, and two other VMs, one simulating an attack node and the other simulating a vulnerable webapp. These are all connected to the same internal private network set up in KVM. The idea with the network appliance VM is to have it act as if it's connected to a network tap so it can see the traffic between the other two VMs. I'm not able to see the traffic currently and would appreciate your help or suggestions to see if this is possible and how I can set this up if so. I came across some information online suggesting to have the interfaces in promiscuous mode, including the virtual NIC for the private network, and I've tried all combinations. Thanks for any help you can offer! Thanks, Kevin -- sede...@gmail.com ___ CentOS-virt mailing list CentOS-virt@centos.org https://lists.centos.org/mailman/listinfo/centos-virt
Re: [CentOS-virt] KVM
>>> If you run top what are you seeing on the %Cpu(s) line? http://i.hizliresim.com/NrmV9Y.png On Mon, Feb 8, 2016 at 10:53 PM, Alvin Starrwrote: > You need to provide more information. > 20% is what number. > There are something like 6 numbers on that line. > > > On 02/08/2016 02:56 PM, Gokan Atmaca wrote: >>> >>> If you run top what are you seeing on the %Cpu(s) line? >> >> %20 >> >> >> On Mon, Feb 8, 2016 at 9:30 PM, Alvin Starr wrote: >>> >>> Slow disks will show up as higher I/Owait times. >>> If your seeing 99% cpu usage then your likely looking at some other >>> problem. >>> >>> If you run top what are you seeing on the %Cpu(s) line? >>> >>> >>> On 02/08/2016 02:20 PM, Gokan Atmaca wrote: > > I'm guessing you're using standard 7,200rpm platter drives? You'll need > to share more information about your environment in order for us to > provide useful feedback. Usually though, the answer is 'caching' and/or > 'faster disks'. Yes , 7.2k rpm disks. 2T mirror (soft). In fact, I had such a preference for slightly more capacity. Unfortunately very expensive SAS drives. But this works only if the server in question occur. In this case, about 15 minutes. progress. On Mon, Feb 8, 2016 at 9:13 PM, Digimer wrote: > > On 08/02/16 02:12 PM, Gokan Atmaca wrote: >> >> Hello >> >> I use KVM. In a virtual machine "jbd2 dm-0" disk I / O is very >> increases. It consumes up to 99%. For this reason, slowing down the >> other virtual machine. What should I do to solve the problem. ? >> >> Thanks.. > > I'm guessing you're using standard 7,200rpm platter drives? You'll need > to share more information about your environment in order for us to > provide useful feedback. Usually though, the answer is 'caching' and/or > 'faster disks'. > > -- > Digimer > Papers and Projects: https://alteeve.ca/w/ > What if the cure for cancer is trapped in the mind of a person without > access to education? > ___ > CentOS-virt mailing list > CentOS-virt@centos.org > https://lists.centos.org/mailman/listinfo/centos-virt ___ CentOS-virt mailing list CentOS-virt@centos.org https://lists.centos.org/mailman/listinfo/centos-virt >>> >>> >>> >>> -- >>> Alvin Starr || voice: (905)513-7688 >>> Netvel Inc. || Cell: (416)806-0133 >>> al...@netvel.net || >>> >>> >>> ___ >>> CentOS-virt mailing list >>> CentOS-virt@centos.org >>> https://lists.centos.org/mailman/listinfo/centos-virt >> >> ___ >> CentOS-virt mailing list >> CentOS-virt@centos.org >> https://lists.centos.org/mailman/listinfo/centos-virt > > > > -- > Alvin Starr || voice: (905)513-7688 > Netvel Inc. || Cell: (416)806-0133 > al...@netvel.net || > > ___ > CentOS-virt mailing list > CentOS-virt@centos.org > https://lists.centos.org/mailman/listinfo/centos-virt ___ CentOS-virt mailing list CentOS-virt@centos.org https://lists.centos.org/mailman/listinfo/centos-virt
Re: [CentOS-virt] KVM
Am 08.02.2016 um 22:25 schrieb Gokan Atmaca: If you run top what are you seeing on the %Cpu(s) line? http://i.hizliresim.com/NrmV9Y.png That's not a CentOS system. You should probably consult the community providing support for your Debian or Ubuntu based system. I see you run MySQL, so verify your database configuration against the discussion at https://serverfault.com/questions/363355/io-wait-causing-so-much-slowdown-ext4-jdb2-at-99-io-during-mysql-commit Alexander ___ CentOS-virt mailing list CentOS-virt@centos.org https://lists.centos.org/mailman/listinfo/centos-virt
Re: [CentOS-virt] KVM
> If you run top what are you seeing on the %Cpu(s) line? %20 On Mon, Feb 8, 2016 at 9:30 PM, Alvin Starrwrote: > Slow disks will show up as higher I/Owait times. > If your seeing 99% cpu usage then your likely looking at some other problem. > > If you run top what are you seeing on the %Cpu(s) line? > > > On 02/08/2016 02:20 PM, Gokan Atmaca wrote: >>> >>> I'm guessing you're using standard 7,200rpm platter drives? You'll need >>> to share more information about your environment in order for us to >>> provide useful feedback. Usually though, the answer is 'caching' and/or >>> 'faster disks'. >> >> Yes , 7.2k rpm disks. 2T mirror (soft). In fact, I had such a >> preference for slightly more capacity. >> Unfortunately very expensive SAS drives. But this works only if the >> server in question occur. >> In this case, about 15 minutes. progress. >> >> >> On Mon, Feb 8, 2016 at 9:13 PM, Digimer wrote: >>> >>> On 08/02/16 02:12 PM, Gokan Atmaca wrote: Hello I use KVM. In a virtual machine "jbd2 dm-0" disk I / O is very increases. It consumes up to 99%. For this reason, slowing down the other virtual machine. What should I do to solve the problem. ? Thanks.. >>> >>> I'm guessing you're using standard 7,200rpm platter drives? You'll need >>> to share more information about your environment in order for us to >>> provide useful feedback. Usually though, the answer is 'caching' and/or >>> 'faster disks'. >>> >>> -- >>> Digimer >>> Papers and Projects: https://alteeve.ca/w/ >>> What if the cure for cancer is trapped in the mind of a person without >>> access to education? >>> ___ >>> CentOS-virt mailing list >>> CentOS-virt@centos.org >>> https://lists.centos.org/mailman/listinfo/centos-virt >> >> ___ >> CentOS-virt mailing list >> CentOS-virt@centos.org >> https://lists.centos.org/mailman/listinfo/centos-virt > > > > -- > Alvin Starr || voice: (905)513-7688 > Netvel Inc. || Cell: (416)806-0133 > al...@netvel.net || > > > ___ > CentOS-virt mailing list > CentOS-virt@centos.org > https://lists.centos.org/mailman/listinfo/centos-virt ___ CentOS-virt mailing list CentOS-virt@centos.org https://lists.centos.org/mailman/listinfo/centos-virt
Re: [CentOS-virt] KVM
You need to provide more information. 20% is what number. There are something like 6 numbers on that line. On 02/08/2016 02:56 PM, Gokan Atmaca wrote: If you run top what are you seeing on the %Cpu(s) line? %20 On Mon, Feb 8, 2016 at 9:30 PM, Alvin Starrwrote: Slow disks will show up as higher I/Owait times. If your seeing 99% cpu usage then your likely looking at some other problem. If you run top what are you seeing on the %Cpu(s) line? On 02/08/2016 02:20 PM, Gokan Atmaca wrote: I'm guessing you're using standard 7,200rpm platter drives? You'll need to share more information about your environment in order for us to provide useful feedback. Usually though, the answer is 'caching' and/or 'faster disks'. Yes , 7.2k rpm disks. 2T mirror (soft). In fact, I had such a preference for slightly more capacity. Unfortunately very expensive SAS drives. But this works only if the server in question occur. In this case, about 15 minutes. progress. On Mon, Feb 8, 2016 at 9:13 PM, Digimer wrote: On 08/02/16 02:12 PM, Gokan Atmaca wrote: Hello I use KVM. In a virtual machine "jbd2 dm-0" disk I / O is very increases. It consumes up to 99%. For this reason, slowing down the other virtual machine. What should I do to solve the problem. ? Thanks.. I'm guessing you're using standard 7,200rpm platter drives? You'll need to share more information about your environment in order for us to provide useful feedback. Usually though, the answer is 'caching' and/or 'faster disks'. -- Digimer Papers and Projects: https://alteeve.ca/w/ What if the cure for cancer is trapped in the mind of a person without access to education? ___ CentOS-virt mailing list CentOS-virt@centos.org https://lists.centos.org/mailman/listinfo/centos-virt ___ CentOS-virt mailing list CentOS-virt@centos.org https://lists.centos.org/mailman/listinfo/centos-virt -- Alvin Starr || voice: (905)513-7688 Netvel Inc. || Cell: (416)806-0133 al...@netvel.net || ___ CentOS-virt mailing list CentOS-virt@centos.org https://lists.centos.org/mailman/listinfo/centos-virt ___ CentOS-virt mailing list CentOS-virt@centos.org https://lists.centos.org/mailman/listinfo/centos-virt -- Alvin Starr || voice: (905)513-7688 Netvel Inc. || Cell: (416)806-0133 al...@netvel.net || ___ CentOS-virt mailing list CentOS-virt@centos.org https://lists.centos.org/mailman/listinfo/centos-virt
Re: [CentOS-virt] KVM
On Mon, Feb 8, 2016 at 2:53 PM, Alvin Starrwrote: > You need to provide more information. > 20% is what number. > There are something like 6 numbers on that line. > > Post commands and results of command outputs ___ CentOS-virt mailing list CentOS-virt@centos.org https://lists.centos.org/mailman/listinfo/centos-virt
Re: [CentOS-virt] KVM
> Are the disk partitions properly aligned to 4k boundary on the host (and in > the guests too) ? > There are 5 in total server. 32G ram. 2T r1 (soft) disk. On Mon, Feb 8, 2016 at 9:41 PM, Zoltan Frombachwrote: > Are the disk partitions properly aligned to 4k boundary on the host (and in > the guests too) ? > > See > http://www.ibm.com/developerworks/library/l-linux-on-4kb-sector-disks/index.html > and this: > http://unix.stackexchange.com/questions/247387/check-if-partitions-are-aligned-properly-for-performance > > > On 2/8/2016 8:12 PM, Gokan Atmaca wrote: >> >> Hello >> >> I use KVM. In a virtual machine "jbd2 dm-0" disk I / O is very >> increases. It consumes up to 99%. For this reason, slowing down the >> other virtual machine. What should I do to solve the problem. ? >> >> Thanks.. >> ___ >> CentOS-virt mailing list >> CentOS-virt@centos.org >> https://lists.centos.org/mailman/listinfo/centos-virt > > > ___ > CentOS-virt mailing list > CentOS-virt@centos.org > https://lists.centos.org/mailman/listinfo/centos-virt ___ CentOS-virt mailing list CentOS-virt@centos.org https://lists.centos.org/mailman/listinfo/centos-virt
Re: [CentOS-virt] KVM
On 08/02/16 02:20 PM, Gokan Atmaca wrote: >> I'm guessing you're using standard 7,200rpm platter drives? You'll need >> to share more information about your environment in order for us to >> provide useful feedback. Usually though, the answer is 'caching' and/or >> 'faster disks'. > > Yes , 7.2k rpm disks. 2T mirror (soft). In fact, I had such a > preference for slightly more capacity. Those are slow and have poor seek latency. Slow-down of other servers when one hits the disk hard has to be expected. > Unfortunately very expensive SAS drives. But this works only if the > server in question occur. > In this case, about 15 minutes. progress. I don't understand what you are saying/asking, sorry. > On Mon, Feb 8, 2016 at 9:13 PM, Digimerwrote: >> On 08/02/16 02:12 PM, Gokan Atmaca wrote: >>> Hello >>> >>> I use KVM. In a virtual machine "jbd2 dm-0" disk I / O is very >>> increases. It consumes up to 99%. For this reason, slowing down the >>> other virtual machine. What should I do to solve the problem. ? >>> >>> Thanks.. >> >> I'm guessing you're using standard 7,200rpm platter drives? You'll need >> to share more information about your environment in order for us to >> provide useful feedback. Usually though, the answer is 'caching' and/or >> 'faster disks'. >> >> -- >> Digimer >> Papers and Projects: https://alteeve.ca/w/ >> What if the cure for cancer is trapped in the mind of a person without >> access to education? >> ___ >> CentOS-virt mailing list >> CentOS-virt@centos.org >> https://lists.centos.org/mailman/listinfo/centos-virt > ___ > CentOS-virt mailing list > CentOS-virt@centos.org > https://lists.centos.org/mailman/listinfo/centos-virt > -- Digimer Papers and Projects: https://alteeve.ca/w/ What if the cure for cancer is trapped in the mind of a person without access to education? ___ CentOS-virt mailing list CentOS-virt@centos.org https://lists.centos.org/mailman/listinfo/centos-virt
Re: [CentOS-virt] KVM
Are the disk partitions properly aligned to 4k boundary on the host (and in the guests too) ? See http://www.ibm.com/developerworks/library/l-linux-on-4kb-sector-disks/index.html and this: http://unix.stackexchange.com/questions/247387/check-if-partitions-are-aligned-properly-for-performance On 2/8/2016 8:12 PM, Gokan Atmaca wrote: Hello I use KVM. In a virtual machine "jbd2 dm-0" disk I / O is very increases. It consumes up to 99%. For this reason, slowing down the other virtual machine. What should I do to solve the problem. ? Thanks.. ___ CentOS-virt mailing list CentOS-virt@centos.org https://lists.centos.org/mailman/listinfo/centos-virt ___ CentOS-virt mailing list CentOS-virt@centos.org https://lists.centos.org/mailman/listinfo/centos-virt
Re: [CentOS-virt] KVM
On 08/02/16 02:12 PM, Gokan Atmaca wrote: > Hello > > I use KVM. In a virtual machine "jbd2 dm-0" disk I / O is very > increases. It consumes up to 99%. For this reason, slowing down the > other virtual machine. What should I do to solve the problem. ? > > Thanks.. I'm guessing you're using standard 7,200rpm platter drives? You'll need to share more information about your environment in order for us to provide useful feedback. Usually though, the answer is 'caching' and/or 'faster disks'. -- Digimer Papers and Projects: https://alteeve.ca/w/ What if the cure for cancer is trapped in the mind of a person without access to education? ___ CentOS-virt mailing list CentOS-virt@centos.org https://lists.centos.org/mailman/listinfo/centos-virt
Re: [CentOS-virt] KVM
> I'm guessing you're using standard 7,200rpm platter drives? You'll need > to share more information about your environment in order for us to > provide useful feedback. Usually though, the answer is 'caching' and/or > 'faster disks'. Yes , 7.2k rpm disks. 2T mirror (soft). In fact, I had such a preference for slightly more capacity. Unfortunately very expensive SAS drives. But this works only if the server in question occur. In this case, about 15 minutes. progress. On Mon, Feb 8, 2016 at 9:13 PM, Digimerwrote: > On 08/02/16 02:12 PM, Gokan Atmaca wrote: >> Hello >> >> I use KVM. In a virtual machine "jbd2 dm-0" disk I / O is very >> increases. It consumes up to 99%. For this reason, slowing down the >> other virtual machine. What should I do to solve the problem. ? >> >> Thanks.. > > I'm guessing you're using standard 7,200rpm platter drives? You'll need > to share more information about your environment in order for us to > provide useful feedback. Usually though, the answer is 'caching' and/or > 'faster disks'. > > -- > Digimer > Papers and Projects: https://alteeve.ca/w/ > What if the cure for cancer is trapped in the mind of a person without > access to education? > ___ > CentOS-virt mailing list > CentOS-virt@centos.org > https://lists.centos.org/mailman/listinfo/centos-virt ___ CentOS-virt mailing list CentOS-virt@centos.org https://lists.centos.org/mailman/listinfo/centos-virt
[CentOS-virt] KVM
Hello I use KVM. In a virtual machine "jbd2 dm-0" disk I / O is very increases. It consumes up to 99%. For this reason, slowing down the other virtual machine. What should I do to solve the problem. ? Thanks.. ___ CentOS-virt mailing list CentOS-virt@centos.org https://lists.centos.org/mailman/listinfo/centos-virt
Re: [CentOS-virt] KVM
Slow disks will show up as higher I/Owait times. If your seeing 99% cpu usage then your likely looking at some other problem. If you run top what are you seeing on the %Cpu(s) line? On 02/08/2016 02:20 PM, Gokan Atmaca wrote: I'm guessing you're using standard 7,200rpm platter drives? You'll need to share more information about your environment in order for us to provide useful feedback. Usually though, the answer is 'caching' and/or 'faster disks'. Yes , 7.2k rpm disks. 2T mirror (soft). In fact, I had such a preference for slightly more capacity. Unfortunately very expensive SAS drives. But this works only if the server in question occur. In this case, about 15 minutes. progress. On Mon, Feb 8, 2016 at 9:13 PM, Digimerwrote: On 08/02/16 02:12 PM, Gokan Atmaca wrote: Hello I use KVM. In a virtual machine "jbd2 dm-0" disk I / O is very increases. It consumes up to 99%. For this reason, slowing down the other virtual machine. What should I do to solve the problem. ? Thanks.. I'm guessing you're using standard 7,200rpm platter drives? You'll need to share more information about your environment in order for us to provide useful feedback. Usually though, the answer is 'caching' and/or 'faster disks'. -- Digimer Papers and Projects: https://alteeve.ca/w/ What if the cure for cancer is trapped in the mind of a person without access to education? ___ CentOS-virt mailing list CentOS-virt@centos.org https://lists.centos.org/mailman/listinfo/centos-virt ___ CentOS-virt mailing list CentOS-virt@centos.org https://lists.centos.org/mailman/listinfo/centos-virt -- Alvin Starr || voice: (905)513-7688 Netvel Inc. || Cell: (416)806-0133 al...@netvel.net || ___ CentOS-virt mailing list CentOS-virt@centos.org https://lists.centos.org/mailman/listinfo/centos-virt
Re: [CentOS-virt] KVM
Using *top *and looki at *'wa' *value can tell you I/O wait time for each CPU Dont forget to press "*1*" to expand list of CPUs Tasks: 501 total, 4 running, 497 sleeping, 0 stopped, 0 zombie Cpu0 : 31.9%us, 52.7%sy, 0.0%ni, 15.1%id, *0.0%wa*, 0.0%hi, 0.3%si, 0.0%st Cpu1 : 29.7%us, 7.6%sy, 0.0%ni, 62.1%id, *0.0%wa,* 0.0%hi, 0.7%si, 0.0%st Also, there is handy tool called: *iotop *which can tell how much process writes and read. We can see on our 6Gpbs SATAIII interface with SSD disks, the interfaces is being maxed out with writes at ~500MBs At the end 7.2k disks can be easily maxed out while running a few VMs so no surprise here. Lastly, setup some monitoring for example munin, its quite handy : http://demo.munin-monitoring.org/disk-day.html On Mon, Feb 8, 2016 at 1:58 PM Gokan Atmacawrote: > > Are the disk partitions properly aligned to 4k boundary on the host (and > in > > the guests too) ? > > > There are 5 in total server. 32G ram. 2T r1 (soft) disk. > > > On Mon, Feb 8, 2016 at 9:41 PM, Zoltan Frombach > wrote: > > Are the disk partitions properly aligned to 4k boundary on the host (and > in > > the guests too) ? > > > > See > > > http://www.ibm.com/developerworks/library/l-linux-on-4kb-sector-disks/index.html > > and this: > > > http://unix.stackexchange.com/questions/247387/check-if-partitions-are-aligned-properly-for-performance > > > > > > On 2/8/2016 8:12 PM, Gokan Atmaca wrote: > >> > >> Hello > >> > >> I use KVM. In a virtual machine "jbd2 dm-0" disk I / O is very > >> increases. It consumes up to 99%. For this reason, slowing down the > >> other virtual machine. What should I do to solve the problem. ? > >> > >> Thanks.. > >> ___ > >> CentOS-virt mailing list > >> CentOS-virt@centos.org > >> https://lists.centos.org/mailman/listinfo/centos-virt > > > > > > ___ > > CentOS-virt mailing list > > CentOS-virt@centos.org > > https://lists.centos.org/mailman/listinfo/centos-virt > ___ > CentOS-virt mailing list > CentOS-virt@centos.org > https://lists.centos.org/mailman/listinfo/centos-virt > -- Mintel Group Limited | 333 West Wacker Drive Suite 1100 | Chicago, Illinois USA 60606 Contact details for our other offices can be found at http://www.mintel.com/office-locations. This email and any attachments may include content that is confidential, privileged or otherwise protected under applicable law. Unauthorized disclosure, copying, distribution or use of the contents is prohibited and may be unlawful. If you have received this email in error, including without appropriate authorization, then please reply to the sender about the error and delete this email and any attachments. ___ CentOS-virt mailing list CentOS-virt@centos.org https://lists.centos.org/mailman/listinfo/centos-virt
Re: [CentOS-virt] kvm-qemu-ev in testing
On 30.11.2015 19:02, Jean-Marc LIGER wrote: Is it possible to add patch https://bugzilla.redhat.com/show_bug.cgi?id=1248758 into qemu-kvm-ev from Red Hat, oVirt and cbs/centos ? Could you rediff this patch for qemu-kvm-ev 2.3.0 series ? I am already wasting too many time for this patch... -- Best regards, Gena ___ CentOS-virt mailing list CentOS-virt@centos.org https://lists.centos.org/mailman/listinfo/centos-virt
Re: [CentOS-virt] kvm-qemu-ev in testing
Le 31/10/2015 01:52, Gena Makhomed a écrit : On 29.10.2015 0:00, Sandro Bonazzola wrote: it will be in http://mirror.centos.org/centos/7/virt/x86_64/kvm-common/ enabled by http://mirror.centos.org/centos/7/extras/x86_64/Packages/centos-release-qemu-ev-1.0-1.el7.noarch.rpm Is it possible to add patch https://bugzilla.redhat.com/show_bug.cgi?id=1248758 into qemu-kvm-ev from Red Hat, oVirt and cbs/centos ? Rebuilding each qemu-kvm-ev from sources is just wasting of time. Hy, Could you rediff this patch for qemu-kvm-ev 2.3.0 series ? JML ___ CentOS-virt mailing list CentOS-virt@centos.org https://lists.centos.org/mailman/listinfo/centos-virt
Re: [CentOS-virt] kvm-qemu-ev in testing
On 29.10.2015 0:00, Sandro Bonazzola wrote: it will be in http://mirror.centos.org/centos/7/virt/x86_64/kvm-common/ enabled by http://mirror.centos.org/centos/7/extras/x86_64/Packages/centos-release-qemu-ev-1.0-1.el7.noarch.rpm Is it possible to add patch https://bugzilla.redhat.com/show_bug.cgi?id=1248758 into qemu-kvm-ev from Red Hat, oVirt and cbs/centos ? Rebuilding each qemu-kvm-ev from sources is just wasting of time. -- Best regards, Gena ___ CentOS-virt mailing list CentOS-virt@centos.org https://lists.centos.org/mailman/listinfo/centos-virt
Re: [CentOS-virt] kvm-qemu-ev in testing
On 10/07/2015 07:07 PM, Karanbir Singh wrote: hi, kvm-qemu-ev from virt7-kvm-common-release is now signed and available on buildlogs.centos.org for testing, the corresponding release file is available in the centos/7/extras/ location on buildlogs as well. Works here as a drop-in replacement for the 'regular' qemu-kvm packages running Windows 7 as a guest. I am still looking forward to seeing what the '-ev' packages bring to the table over the regular qemu-kvm packages, but Win7 seems a bit more responsive under '-ev' than under the regular packages. I actually rebuilt from the latest .src.rpm on cbs rather than using the pre-built ones, but am looking forward to following this. In what repo will the '-ev' packages reside for update purposes? ___ CentOS-virt mailing list CentOS-virt@centos.org https://lists.centos.org/mailman/listinfo/centos-virt
Re: [CentOS-virt] kvm-qemu-ev in testing
On 10/28/2015 06:00 PM, Sandro Bonazzola wrote: On Wed, Oct 28, 2015 at 5:29 PM, Lamar Owen> wrote: In what repo will the '-ev' packages reside for update purposes? it will be in http://mirror.centos.org/centos/7/virt/x86_64/kvm-common/ enabled by http://mirror.centos.org/centos/7/extras/x86_64/Packages/centos-release-qemu-ev-1.0-1.el7.noarch.rpm Thanks, Sandro. ___ CentOS-virt mailing list CentOS-virt@centos.org https://lists.centos.org/mailman/listinfo/centos-virt
Re: [CentOS-virt] kvm-qemu-ev in testing
May I ask what is the difference between the kvm-qemu package from Base CentOS 7 repo? Thanks, Eliezer On 08/10/2015 02:07, Karanbir Singh wrote: hi, kvm-qemu-ev from virt7-kvm-common-release is now signed and available on buildlogs.centos.org for testing, the corresponding release file is available in the centos/7/extras/ location on buildlogs as well. Once we have some testing, we can push and announce via mirror.centos.org for wider adoption. Regards, ___ CentOS-virt mailing list CentOS-virt@centos.org https://lists.centos.org/mailman/listinfo/centos-virt
Re: [CentOS-virt] kvm-qemu-ev in testing
Eliezer, >From what I could find on the internet, it's this: Live Snapshots Live Storage Migration Live Snapshot Merge Block I/O Throttling CEPH Enablement OpenvSwitch >From >https://rhsummit.files.wordpress.com/2014/04/sarathy_h_0945_red_hat_enterprise_virtualization_hypervisor.pdf I'd love an answer with proper/current info as well. :-) Lucian -- Sent from the Delta quadrant using Borg technology! Nux! www.nux.ro - Original Message - > From: "Eliezer Croitoru" <elie...@ngtech.co.il> > To: centos-virt@centos.org > Sent: Wednesday, 28 October, 2015 22:17:53 > Subject: Re: [CentOS-virt] kvm-qemu-ev in testing > May I ask what is the difference between the kvm-qemu package from Base > CentOS 7 repo? > > Thanks, > Eliezer > > On 08/10/2015 02:07, Karanbir Singh wrote: >> hi, >> >> kvm-qemu-ev from virt7-kvm-common-release is now signed and available on >> buildlogs.centos.org for testing, the corresponding release file is >> available in the centos/7/extras/ location on buildlogs as well. >> >> Once we have some testing, we can push and announce via >> mirror.centos.org for wider adoption. >> >> Regards, >> > > ___ > CentOS-virt mailing list > CentOS-virt@centos.org > https://lists.centos.org/mailman/listinfo/centos-virt ___ CentOS-virt mailing list CentOS-virt@centos.org https://lists.centos.org/mailman/listinfo/centos-virt
Re: [CentOS-virt] kvm-qemu-ev in testing
On Wed, Oct 28, 2015 at 5:29 PM, Lamar Owenwrote: > On 10/07/2015 07:07 PM, Karanbir Singh wrote: > >> hi, >> >> kvm-qemu-ev from virt7-kvm-common-release is now signed and available on >> buildlogs.centos.org for testing, the corresponding release file is >> available in the centos/7/extras/ location on buildlogs as well. >> >> >> Works here as a drop-in replacement for the 'regular' qemu-kvm packages > running Windows 7 as a guest. I am still looking forward to seeing what > the '-ev' packages bring to the table over the regular qemu-kvm packages, > but Win7 seems a bit more responsive under '-ev' than under the regular > packages. > > I actually rebuilt from the latest .src.rpm on cbs rather than using the > pre-built ones, but am looking forward to following this. > > In what repo will the '-ev' packages reside for update purposes? it will be in http://mirror.centos.org/centos/7/virt/x86_64/kvm-common/ enabled by http://mirror.centos.org/centos/7/extras/x86_64/Packages/centos-release-qemu-ev-1.0-1.el7.noarch.rpm > > > ___ > CentOS-virt mailing list > CentOS-virt@centos.org > https://lists.centos.org/mailman/listinfo/centos-virt > -- Sandro Bonazzola Better technology. Faster innovation. Powered by community collaboration. See how it works at redhat.com ___ CentOS-virt mailing list CentOS-virt@centos.org https://lists.centos.org/mailman/listinfo/centos-virt
Re: [CentOS-virt] kvm-qemu-ev in testing
On Thu, Oct 8, 2015 at 1:07 AM, Karanbir Singhwrote: > hi, > > kvm-qemu-ev from virt7-kvm-common-release is now signed and available on > buildlogs.centos.org for testing, the corresponding release file is > available in the centos/7/extras/ location on buildlogs as well. > > Once we have some testing, we can push and announce via > mirror.centos.org for wider adoption. > Works fine for me testing for basic operations at least. > > Regards, > > -- > Karanbir Singh > +44-207-0999389 | http://www.karan.org/ | twitter.com/kbsingh > GnuPG Key : http://www.karan.org/publickey.asc > ___ > CentOS-virt mailing list > CentOS-virt@centos.org > https://lists.centos.org/mailman/listinfo/centos-virt > -- Sandro Bonazzola Better technology. Faster innovation. Powered by community collaboration. See how it works at redhat.com ___ CentOS-virt mailing list CentOS-virt@centos.org https://lists.centos.org/mailman/listinfo/centos-virt
[CentOS-virt] kvm-qemu-ev in testing
hi, kvm-qemu-ev from virt7-kvm-common-release is now signed and available on buildlogs.centos.org for testing, the corresponding release file is available in the centos/7/extras/ location on buildlogs as well. Once we have some testing, we can push and announce via mirror.centos.org for wider adoption. Regards, -- Karanbir Singh +44-207-0999389 | http://www.karan.org/ | twitter.com/kbsingh GnuPG Key : http://www.karan.org/publickey.asc ___ CentOS-virt mailing list CentOS-virt@centos.org https://lists.centos.org/mailman/listinfo/centos-virt
[CentOS-virt] Kvm intel dual gigabit ethernet nic pass thru.
Hello I am having a weird issue with a PCI-X Intel dual gigabit ethernet nic. While I am partially successful in pass thru with kvm, I have a weird issue with my pfsense freebsd vm. It see the two nics but gives them the same Mac address. I'm not sure if this is a pfsense bug or what. The nic works for everything but this Mac address issue. Long story short, I guess what I'm asking is there any options I should use when passing thru dual and quad Intel ethernetadapter right now I am using hostpci0: 1:00.0, driver=vfio Thanks Rafeal ___ CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt
Re: [CentOS-virt] KVM and USB
On 05/09/2015 01:46 AM, ToddAndMargo wrote: Hi All, On KVM, is there a way to pass USB Flash drives automatically to the guest without having to go into virt-manager and selecting the specific USB device? -T Here is great tutorial: http://www.linux-kvm.org/page/USB_Host_Device_Assigned_to_Guest Note that you can not map a USB 3 device https://bugzilla.redhat.com/show_bug.cgi?id=1221471 -- ~~ Computers are like air conditioners. They malfunction when you open windows ~~ ___ CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt
[CentOS-virt] KVM and USB
Hi All, On KVM, is there a way to pass USB Flash drives automatically to the guest without having to go into virt-manager and selecting the specific USB device? -T -- ~~ Computers are like air conditioners. They malfunction when you open windows ~~ ___ CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt
Re: [CentOS-virt] kvm guest from zfs dataset
On 01/15/2015 07:47 PM, aurfalien wrote: I’m trying to run a KVM based guest OS off of a mirrored ZFS dataset. It won’t run with errors invalid argument.., but will run when on the root volume, or when that ZFS dataset has been removed in favor of an EXT4 volumes. KVM works fine on ZFS block devices. I haven't tried running an image file off of one (zvols are more appropriate to task). Try (approximately, from memory): zfs create pool/machine zfs create -V 2G pool/machine/boot zfs create -V 64G pool/machine/root etc. and in KVM, define the disks as physical devices: /dev/zvol/pool/machine/boot and /dev/zvol/pool/machine/root (etc.) I usually partition each 'disk' from within the VM, but you could pre-partition from the host. I like boot-part1 as ext3, for ultimate portability back to older virtualization software (and it's just '/boot', so who cares) on the off chance I have to move the VM at some point. If you're going to compress, do zfs set compress=lz4 pool/machine for better performance (need a new-ish ZoL with feature-flags for this). Setup zfs-auto-snapshot with --fast in the cron jobs for best performance. If you're using whole-disk encryption, do those on the disks _before_ they're added to the pool. I've been bitten by trying to encrypt on top of the ZFS mirror before. Put them in crypttab and you'll be all set at boot time. On newer Fedora-derived OS'es you'll need to 'systemctl enable zfs.target' to get the ordering right. -Bill -- Bill McGonigle, Owner BFC Computing, LLC http://bfccomputing.com/ Telephone: +1.855.SW.LIBRE Email, IM, VOIP: b...@bfccomputing.com VCard: http://bfccomputing.com/vcard/bill.vcf Social networks: bill_mcgonigle/bill.mcgonigle ___ CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt
Re: [CentOS-virt] kvm guest from zfs dataset
On Fri, Jan 16, 2015 at 12:47 AM, aurfalien aurfal...@gmail.com wrote: Hi all, I thought I’d post this in case any one has issues similar to mine. First, my initial email to the list which I didn’t send; I’m trying to run a KVM based guest OS off of a mirrored ZFS dataset. It won’t run with errors invalid argument.., but will run when on the root volume, or when that ZFS dataset has been removed in favor of an EXT4 volumes. Thanks in advance, PS I do see this thread which is not promising; http://www.redhat.com/archives/redhat-list/2014-July/msg00017.html Lastly, the solution; Set your cache policy on the KVM guest as write back. This allows it to run on a ZFS volume. My apology if this has been covered. I did spend some time on this so hopefully you can save time by setting the cache policy. The virt-manager / KVM angle is covered here: https://github.com/zfsonlinux/zfs/issues/224 It looks like virt-manager asks for cached=none by default, which causes qemu to pass the O_DIRECT flag when opening the file, which ZFS doesn't support. Be advised that if you use your work-around, you may be risking problems with disk corruption unless your OS understands how to use flush commands; see cached=writeback here: https://www.suse.com/documentation/sles11/book_kvm/data/sect1_1_chapter_book_kvm.html -George ___ CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt
[CentOS-virt] kvm guest from zfs dataset
Hi all, I thought I’d post this in case any one has issues similar to mine. First, my initial email to the list which I didn’t send; I’m trying to run a KVM based guest OS off of a mirrored ZFS dataset. It won’t run with errors invalid argument.., but will run when on the root volume, or when that ZFS dataset has been removed in favor of an EXT4 volumes. Thanks in advance, PS I do see this thread which is not promising; http://www.redhat.com/archives/redhat-list/2014-July/msg00017.html Lastly, the solution; Set your cache policy on the KVM guest as write back. This allows it to run on a ZFS volume. My apology if this has been covered. I did spend some time on this so hopefully you can save time by setting the cache policy. - aurf Janitorial Services ___ CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt
Re: [CentOS-virt] KVM integrated network (user mode) dying after inactivity
On Thu, Jun 5, 2014 at 12:10 AM, Timo Schöler t...@riscworks.net wrote: [root@fe00 ~]# brctl show bridge name bridge id STP enabled interfaces br1 8000.001b21xx yes eth1 vnet1 vnet3 virbr0 8000.525400xx yes virbr0-nic vnet0 vnet2 Please share the config file that defines virbr0-nic and virbr0 -- Arun Khan ___ CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt
Re: [CentOS-virt] KVM integrated network (user mode) dying after inactivity
Timo, I can confirm observing the same behavior. Your email thread here was very helpful in that it gave me two workarounds: (1) service libvirtd restart (2) make some background keepalive ping. I'm hosting on a RHEL 6.4 system with similar version numbers: [root@redpant centosimage]# rpm -qa|egrep '(virt|kvm)' libvirt-python-0.10.2-18.el6_4.2.x86_64 libvirt-0.10.2-18.el6_4.2.x86_64 virt-manager-0.9.0-18.el6.x86_64 virt-viewer-0.5.2-18.el6_4.2.x86_64 virt-top-1.0.4-3.15.el6.x86_64 qemu-kvm-0.12.1.2-2.355.el6_4.2.x86_64 python-virtinst-0.600.0-15.el6.noarch virt-what-1.11-1.2.el6.x86_64 virt-who-0.8-5.el6.noarch libvirt-java-devel-0.4.9-1.el6.noarch libvirt-devel-0.10.2-18.el6_4.2.x86_64 libvirt-client-0.10.2-18.el6_4.2.x86_64 libvirt-java-0.4.9-1.el6.noarch Mojo -- Morris Jones Monrovia, CA http://mojo.whiteoaks.com ___ CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt
Re: [CentOS-virt] KVM integrated network (user mode) dying after inactivity
On Wed, Jun 4, 2014 at 7:40 PM, Timo Schöler t...@riscworks.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi list, I searched the web for bug reports regarding this phenomenon I see on *multiple* machines of a customer, however, I didn't find an exact fit. So, I'd like to ask here whether anyone else has run into this. I have multiple CentOS 6 machines running using KVM to virtualize a bunch of machines on them (LVM-based). Software releases as following: [root@fe00 ~]# rpm -qa|egrep '(virt|kvm)' virt-viewer-0.5.6-8.el6_5.3.x86_64 libvirt-python-0.10.2-29.el6_5.7.x86_64 libvirt-client-0.10.2-29.el6_5.7.x86_64 qemu-kvm-0.12.1.2-2.415.el6_5.8.x86_64 libvirt-0.10.2-29.el6_5.7.x86_64 python-virtinst-0.600.0-18.el6.noarch [root@fe00 ~]# uname -r 2.6.32-431.17.1.el6.x86_64 The VMs (here: two) have the default connection provided by KVM (heading to the internet) as well as a bridged interface to connect to a high performance backbone, where sensitive data is kept and bandwidth is an issue (or better, not :), on a second interface within the VMs: [root@fe00 ~]# brctl show bridge name bridge id STP enabled interfaces br1 8000.001b21xx yes eth1 vnet1 vnet3 virbr0 8000.525400xx yes virbr0-nic vnet0 vnet2 br1 is the interface connected to the backbone, virbr0 KVM's user mode network. After some time of inactivity on the virbr0 interface, from *within* the VMs connection is *lost*. The interface(s) lose their IP; running dhclient(8) is not of any use. To get the machine back onto track, ``service libvirtd restart'' has to be issued: Vanished iptables rules show up again. (This, in contrast to an Ubuntu document [0], fixes it without shutting the VM(s) down.) Starting dhclient(8) within the VMs gets connectivity back. Have you verified that the iptables rules disappear? That is: * Initially, the NAT rule is present * After inactivity, the NAT rule disappears * After restarting libvirtd, the NAT rule re-appears? -George ___ CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt
Re: [CentOS-virt] KVM integrated network (user mode) dying after inactivity
On 06/05/2014 12:37 PM, thus George Dunlap spake: On Wed, Jun 4, 2014 at 7:40 PM, Timo Schöler t...@riscworks.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi list, I searched the web for bug reports regarding this phenomenon I see on *multiple* machines of a customer, however, I didn't find an exact fit. So, I'd like to ask here whether anyone else has run into this. I have multiple CentOS 6 machines running using KVM to virtualize a bunch of machines on them (LVM-based). Software releases as following: [root@fe00 ~]# rpm -qa|egrep '(virt|kvm)' virt-viewer-0.5.6-8.el6_5.3.x86_64 libvirt-python-0.10.2-29.el6_5.7.x86_64 libvirt-client-0.10.2-29.el6_5.7.x86_64 qemu-kvm-0.12.1.2-2.415.el6_5.8.x86_64 libvirt-0.10.2-29.el6_5.7.x86_64 python-virtinst-0.600.0-18.el6.noarch [root@fe00 ~]# uname -r 2.6.32-431.17.1.el6.x86_64 The VMs (here: two) have the default connection provided by KVM (heading to the internet) as well as a bridged interface to connect to a high performance backbone, where sensitive data is kept and bandwidth is an issue (or better, not :), on a second interface within the VMs: [root@fe00 ~]# brctl show bridge name bridge id STP enabled interfaces br1 8000.001b21xx yes eth1 vnet1 vnet3 virbr0 8000.525400xx yes virbr0-nic vnet0 vnet2 br1 is the interface connected to the backbone, virbr0 KVM's user mode network. After some time of inactivity on the virbr0 interface, from *within* the VMs connection is *lost*. The interface(s) lose their IP; running dhclient(8) is not of any use. To get the machine back onto track, ``service libvirtd restart'' has to be issued: Vanished iptables rules show up again. (This, in contrast to an Ubuntu document [0], fixes it without shutting the VM(s) down.) Starting dhclient(8) within the VMs gets connectivity back. Have you verified that the iptables rules disappear? That is: * Initially, the NAT rule is present * After inactivity, the NAT rule disappears * After restarting libvirtd, the NAT rule re-appears? -George Hi, yes, it's exactly that way it happens. Timo ___ CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt
[CentOS-virt] KVM and DHCP
CentOS-6.5 We have a KVM guest running MS-WinV7pro. This guest is joined to an Active Directory Domain. That domain provides DHCP to the members. The KVM guest does not obtain its IP from the domain but from the local host's qemu hypervisor instead. Is there anyway to get around this and have the guest MS-Win OS get its DHCP from the same place as the rest of the domain members? -- *** 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
[CentOS-virt] KVM - Network bridge issue - lots of overruns
Hi everybody I've a very big network problem with some server running CentOS with KVM and some linux-like VMs on the top of it. The vm's network is bridged with a physical dedicate NIC (an Intel PRO/1000) with 2.4.14-NAPI driver (but the problem persists with various versions of the driver) and the CentOS version is 6.4 (same problem with a 5.7 sever) with all the last updates. Randomly I get a lots of overruns on the vnet device on the physical server ad obviously some packet were lost in the VM. brctl show br1 bridge name bridge id STP enabled interfaces br1 8000.002655e7590d no eth3 vnet1 ifconfig vnet1 vnet1 Link encap:Ethernet HWaddr FE:54:00:BF:27:12 inet6 addr: fe80::fc54:ff:febf:2712/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:13358349859 errors:0 dropped:0 overruns:0 frame:0 TX packets:21831525660 errors:0 dropped:0 overruns:1746068 carrier:0 collisions:0 txqueuelen:500 RX bytes:5080769358430 (4.6 TiB) TX bytes:16548002754111 (15.0 TiB) As you can see there are a huge numbers of overruns also if the physical NIC is dedicate solely to this VM and the network traffic is less than 150Mbps. The server is a quite new machine (HP DL120 G6) but I have the same problem on an old DL360 G5 (but this is running about 10 vms). What can I do to solve the problem? My idea was to use the KVM passthrough functionality for the network device, but this method isn't good for a server that runs more than 2 vms as my 360G5... Thanks Beppe PS sorry for my bad english ___ CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt
[CentOS-virt] KVM, virtualized interface, dropped packets.
Hi All. I have currently a small problem to solve. I have a kvm virtual machine which in output of ifconfig eth0 | egrep 'RX packets|TX packets' RX packets:792681304 errors:0 dropped:560728 overruns:0 frame:0 TX packets:716661674 errors:0 dropped:0 overruns:0 carrier:0 show dropped packets. I think that rx buffer is to small (no strange messagess in dmesg) and would like to make it larger. But when I try a solution from http://www.scottalanmiller.com/linux/2011/06/20/working-with-nic-ring-buffers/ I get: ethtool -g eth0 Ring parameters for eth0: Cannot get device ring settings: Operation not supported So what is the proper way to make rx buffers larger in this situation? Best regards, Rafal Radecki. ___ CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt
Re: [CentOS-virt] KVM virtual machine and SAN storage with FC
Hi, while i am using mysql_mmm myself, it does has ist quirks and tends to get the odd node out of sync, especially if your run additional slaves connected to the master-master setup. You might have a look at galera cluster which is available standalone or as part of a special version of MariaDB. I have had a good experience with it, although it's innoDB only for now. There is Multiple-Master MySQL, which basically provides built-in election of the master node and interesting load factors to split the load, and uses a separate IP address for the master node. It works pretty well and is available in the mysql-mmm package from EPEL. Regards, Thomas ___ CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt
Re: [CentOS-virt] KVM virtual machine and SAN storage with FC
On Sat, Jul 6, 2013 at 8:30 AM, Thomas Göttgens tgoettg...@gmail.com wrote: Hi, while i am using mysql_mmm myself, it does has ist quirks and tends to get the odd node out of sync, especially if your run additional slaves connected to the master-master setup. You might have a look at galera cluster which is available standalone or as part of a special version of MariaDB. I have had a good experience with it, although it's innoDB only for now. Heh. For good reason. MyISAM is being deprecated, by a lot of developers, for a lot of reasons. Keeping the transactions atomic is apparently a *big* MyISAM problem, and exacerbated by clustering software. I am curious about the multiple slave problem you mention. If this is a reasonable group to detail it, do tell! ___ CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt
Re: [CentOS-virt] KVM virtual machine and SAN storage with FC
On Thu, Jul 4, 2013 at 12:44 AM, denis bahati djbah...@yahoo.co.uk wrote: Hi Brett, On my plan is as follows: I have two machine (Server) that will host two VM each. One for database and one for application. Then the two machine will provide (Load Balance and High availability). My intention is that all application files and data file for the database should reside on the SAN storage for easy access and update. Don't... do this. Two database clients writing to the same database filesystem back ends, simultaneously, is an enormous source of excited sounding flow charts and proposals which simply do not work and are very, very likely to corrupt your database beyond recover. These problems have been examined, for *decades* with shared home directories and saved email and for high performance or clustered databases that need to not have split brain skew, It Does Not Work. Set up a proper database *cluster* with distinct back ends. Therefore the storage should be accessible to both VMs through mounting the SAN storage to the VMs. The connection between SAN storage and the servers is through Fiber Channel. Survey says *bzzzt*. See above for databases. For shared storage, you should really be using some sort of network based access to a filesystem back end. NetApp and EMC spend *billions* in research building high availability shared storage, and even they don't pull stunts like this the last I looked. I can vaguely imagine one of the hosts doing write access and the other having read-only access. But really, most databases today support good clustering configurations that avoid precisely these issues. I have seen somewhere talking about DM-Multipath but i dont know if this can help or the use of VT-d if can help. I will also appreciate if you provide some links to give me insight of how to do this. Multipath does not mean multiple clients of the same hardware storage. That's effectively like letting two kernels write to the same actual disk at the same time, and it's quite dangerous. Now, if you want each client to access their own fiber channel disk resource, that should be workable. Even if you have to mount the fiber channel resources on the KVM host, and make disk images for the KVM guest, that should at least get you a testable resource. But the normal approach is have a fiber channel storage server that makes disk images available via NFS, so that the guest VM's can be migrated from one server to another with the shared storage more safely. ___ CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt
[CentOS-virt] KVM virtual machine and SAN storage with FC
Hi Team, Thanks for the good explanation. If that is not workable for the database, can anyone recommend me for the setup of the database clients and data files in order to achieve HA and load balancing? How should I set up my VMs and stations (Two machines with two VMs each)? I will appreciate for a workable approach and that is practical for the HA/Load balancing. Regards From: Nico Kadel-Garcia nka...@gmail.com To: denis bahati djbah...@yahoo.co.uk; Discussion about the virtualization on CentOS centos-virt@centos.org Cc: br...@worth.id.au br...@worth.id.au Sent: Thursday, 4 July 2013, 18:32 Subject: Re: [CentOS-virt] KVM virtual machine and SAN storage with FC On Thu, Jul 4, 2013 at 12:44 AM, denis bahati djbah...@yahoo.co.uk wrote: Hi Brett, On my plan is as follows: I have two machine (Server) that will host two VM each. One for database and one for application. Then the two machine will provide (Load Balance and High availability). My intention is that all application files and data file for the database should reside on the SAN storage for easy access and update. Don't... do this. Two database clients writing to the same database filesystem back ends, simultaneously, is an enormous source of excited sounding flow charts and proposals which simply do not work and are very, very likely to corrupt your database beyond recover. These problems have been examined, for *decades* with shared home directories and saved email and for high performance or clustered databases that need to not have split brain skew, It Does Not Work. Set up a proper database *cluster* with distinct back ends. Therefore the storage should be accessible to both VMs through mounting the SAN storage to the VMs. The connection between SAN storage and the servers is through Fiber Channel. Survey says *bzzzt*. See above for databases. For shared storage, you should really be using some sort of network based access to a filesystem back end. NetApp and EMC spend *billions* in research building high availability shared storage, and even they don't pull stunts like this the last I looked. I can vaguely imagine one of the hosts doing write access and the other having read-only access. But really, most databases today support good clustering configurations that avoid precisely these issues. I have seen somewhere talking about DM-Multipath but i dont know if this can help or the use of VT-d if can help. I will also appreciate if you provide some links to give me insight of how to do this. Multipath does not mean multiple clients of the same hardware storage. That's effectively like letting two kernels write to the same actual disk at the same time, and it's quite dangerous. Now, if you want each client to access their own fiber channel disk resource, that should be workable. Even if you have to mount the fiber channel resources on the KVM host, and make disk images for the KVM guest, that should at least get you a testable resource. But the normal approach is have a fiber channel storage server that makes disk images available via NFS, so that the guest VM's can be migrated from one server to another with the shared storage more safely. ___ CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt
Re: [CentOS-virt] KVM virtual machine and SAN storage with FC
Hi Brett, On my plan is as follows: I have two machine (Server) that will host two VM each. One for database and one for application. Then the two machine will provide (Load Balance and High availability). My intention is that all application files and data file for the database should reside on the SAN storage for easy access and update. Therefore the storage should be accessible to both VMs through mounting the SAN storage to the VMs. The connection between SAN storage and the servers is through Fiber Channel. I have seen somewhere talking about DM-Multipath but i dont know if this can help or the use of VT-d if can help. I will also appreciate if you provide some links to give me insight of how to do this. If you need more information, please let me know. Regards From: Brett Worth brett.wo...@gmail.com To: denis bahati djbah...@yahoo.co.uk; Discussion about the virtualization on CentOS centos-virt@centos.org Sent: Wednesday, 3 July 2013, 8:40 Subject: Re: [CentOS-virt] KVM virtual machine and SAN storage with FC On 03/07/13 15:22, denis bahati wrote: Is there any body got any experience on setting up a virtualized environment in which the vm's can access a fiber channel SAN storage connected to host? the host access the SAN through its own HBA, but the hba is not recognized inside the virtual machines. Please let me know the step to go through this. How you use this storage depends on whether you plan to do migration from one server to another. If you're not going to be migrating then you can just allocate the FC LUN to LVM volume group and carve off logical volumes for the KVM VMs to use. These can then have meaningful LVM names in /dev/vg_(VG)/lv_(LV) that can be allocated to the VM. See system-config-lvm. If you're planning to migrate between machines then the LVM solution is not going to work. In that case then you might need to create volumes on you FC controller that will be seen as individual devices/luns on the host servers. There is a consistent device name that can be used that appears under /dev/disk/by-id. This will be identical on any host servers that can see that volume. This can be allocated to the VM and will be consistent for a migration. Using this method requires careful management and meticulous documentation of which LUNs have been allocated to which VM. The lun ids are not very user friendly. We've also have good results with DRBD for times when you want to be able to migrate between machines but do not have a SAN. You have to allocate all the storage on each server but you gain by having a sort of backup. Finally, I can recommend convirt as a good system manager interface. Regards Brett -- /) _ _ _/_/ / / / _ _// /_)//= / / (_(_/()/ /// ___ CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt
[CentOS-virt] KVM virtual machine and SAN storage with FC
Hi Team, Is there any body got any experience on setting up a virtualized environment in which the vm's can access a fiber channel SAN storage connected to host? the host access the SAN through its own HBA, but the hba is not recognized inside the virtual machines. Please let me know the step to go through this. Regards___ CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt
Re: [CentOS-virt] KVM virtual machine and SAN storage with FC
On 03/07/13 15:22, denis bahati wrote: Is there any body got any experience on setting up a virtualized environment in which the vm's can access a fiber channel SAN storage connected to host? the host access the SAN through its own HBA, but the hba is not recognized inside the virtual machines. Please let me know the step to go through this. How you use this storage depends on whether you plan to do migration from one server to another. If you're not going to be migrating then you can just allocate the FC LUN to LVM volume group and carve off logical volumes for the KVM VMs to use. These can then have meaningful LVM names in /dev/vg_(VG)/lv_(LV) that can be allocated to the VM. See system-config-lvm. If you're planning to migrate between machines then the LVM solution is not going to work. In that case then you might need to create volumes on you FC controller that will be seen as individual devices/luns on the host servers. There is a consistent device name that can be used that appears under /dev/disk/by-id. This will be identical on any host servers that can see that volume. This can be allocated to the VM and will be consistent for a migration. Using this method requires careful management and meticulous documentation of which LUNs have been allocated to which VM. The lun ids are not very user friendly. We've also have good results with DRBD for times when you want to be able to migrate between machines but do not have a SAN. You have to allocate all the storage on each server but you gain by having a sort of backup. Finally, I can recommend convirt as a good system manager interface. Regards Brett -- /) _ _ _/_/ / / / _ _// /_)//= / / (_(_/()/ /// ___ CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt
[CentOS-virt] KVM virtio block layer - is TRIM/DISCARD supported?
Hi, One question please: If I use SSD as a storage on a host machine, does KVM's virtio I/O layer pass the TRIM/DISCARD commands to the SSD? I guess the question would be twofold: 1) is TRIM supported/forwarded if only one LVM'ed partition of SSD is forwarded? 2) is TRIM supported/forwarded if full SSD is forwarded (i.e. /dev/sdX) -- Best regards, Dmitry Mikhailov ___ CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt
Re: [CentOS-virt] KVM virtio block layer - is TRIM/DISCARD supported?
On Sat, Feb 2, 2013 at 5:12 AM, Dmitry E. Mikhailov d.mikhai...@infocommunications.ru wrote: Hi, One question please: If I use SSD as a storage on a host machine, does KVM's virtio I/O layer pass the TRIM/DISCARD commands to the SSD? Doesn't look like it, *yet*. That looks like it came out in the 2.6.33 kernels, the upstream vendor for CentOS has only gotten up to 2.6.32. I wouldn't necessarily call it stable for production use until it's been out for a while. I guess the question would be twofold: 1) is TRIM supported/forwarded if only one LVM'ed partition of SSD is forwarded? 2) is TRIM supported/forwarded if full SSD is forwarded (i.e. /dev/sdX) See above. ___ CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt
[CentOS-virt] kvm
i have installed kvm on centos 6 but how to run it i not use libvirt___ CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt
Re: [CentOS-virt] kvm
Mattias, - Original Message - i have installed kvm on centos 6 but how to run it i not use libvirt There is a fine virtualization guide written by Red Hat so check that if you haven't. Basically you DO want to use libvirt in so much as you use a client that uses it. What client? Like virt-manager and/or virsh. Those should be the clues that you need. TYL, -- Scott Dowdle 704 Church Street Belgrade, MT 59714 (406)388-0827 [home] (406)994-3931 [work] ___ CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt
Re: [CentOS-virt] KVM online backup images
I don't believe that Centoss yet capable of such feature, live backup is recent and FAIK its available on Fedora 17/18. To workaround this issue I use DRBD and LVM snapshot. This feature is a must have since it's capable to snapshot disk-only (ie. qcow2), making easier to rsync and copy a entire disk without having the hole storage allocated or having big lvm's back and forth. Hope I helped On 11/27/2012 07:45 AM, Andry Michaelidou wrote: Hello to you all! We are implementing here at the University KVM virtualization for our servers and services and i was wondering if anyone try to automatically backup images. I am actually using logical volumes for the VM guests. All virtual clients are installed in their LVM logical volume. We are already use IBM TSM for backup as we used to when we had physical machines, ie install client in OS and manage files and data backup. I want to have an image backup additional to files backup, but i want to take the image online, without pause or suspend the VM guests. Did anyone try to create image backups online? What about http://wiki.qemu.org/Features/Livebackup? Can you please advise? -- Andry Michaelidou Papa | IT Systems Administrator|Department of Computer Science| University of Cyprus Tel: +357.22.892734 | Fax: +357.22.8927231 | http://www.cs.ucy.ac.cy ___ 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] KVM online backup images
see also http://fedoraproject.org/wiki/Features/Virt_Live_Snapshots#Live_backup and http://www.redhat.com/archives/libvir-list/2012-July/msg00782.html via http://irclog.perlgeek.de/crimsonfu/2012-10-24 On Nov 27, 2012, at 6:23 AM, Rudi Servo rudise...@gmail.com wrote: I don't believe that Centoss yet capable of such feature, live backup is recent and FAIK its available on Fedora 17/18. To workaround this issue I use DRBD and LVM snapshot. This feature is a must have since it's capable to snapshot disk-only (ie. qcow2), making easier to rsync and copy a entire disk without having the hole storage allocated or having big lvm's back and forth. Hope I helped On 11/27/2012 07:45 AM, Andry Michaelidou wrote: Hello to you all! We are implementing here at the University KVM virtualization for our servers and services and i was wondering if anyone try to automatically backup images. I am actually using logical volumes for the VM guests. All virtual clients are installed in their LVM logical volume. We are already use IBM TSM for backup as we used to when we had physical machines, ie install client in OS and manage files and data backup. I want to have an image backup additional to files backup, but i want to take the image online, without pause or suspend the VM guests. Did anyone try to create image backups online? What about http://wiki.qemu.org/Features/Livebackup? Can you please advise? -- Andry Michaelidou Papa | IT Systems Administrator |Department of Computer Science | University of Cyprus Tel: +357.22.892734 | Fax: +357.22.8927231 | http://www.cs.ucy.ac.cy ___ 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 mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt
Re: [CentOS-virt] KVM online backup images
Dear Rudi Servo, So you actually have to power off VM guest to take the LVM snapshot and then synchronize the disk with DRDB. Do you automated this procedure using a cronjob or anything similar? Did you restore an image with success? Thank you all, -- Andry Michaelidou Papa | IT Systems Administrator|Department of Computer Science| University of Cyprus Tel: +357.22.892734 | Fax: +357.22.8927231 | http://www.cs.ucy.ac.cy On 27/11/2012 13:39, Philip Durbin wrote: see also http://fedoraproject.org/wiki/Features/Virt_Live_Snapshots#Live_backup and http://www.redhat.com/archives/libvir-list/2012-July/msg00782.html via http://irclog.perlgeek.de/crimsonfu/2012-10-24 On Nov 27, 2012, at 6:23 AM, Rudi Servo rudise...@gmail.com mailto:rudise...@gmail.com wrote: I don't believe that Centoss yet capable of such feature, live backup is recent and FAIK its available on Fedora 17/18. To workaround this issue I use DRBD and LVM snapshot. This feature is a must have since it's capable to snapshot disk-only (ie. qcow2), making easier to rsync and copy a entire disk without having the hole storage allocated or having big lvm's back and forth. Hope I helped On 11/27/2012 07:45 AM, Andry Michaelidou wrote: Hello to you all! We are implementing here at the University KVM virtualization for our servers and services and i was wondering if anyone try to automatically backup images. I am actually using logical volumes for the VM guests. All virtual clients are installed in their LVM logical volume. We are already use IBM TSM for backup as we used to when we had physical machines, ie install client in OS and manage files and data backup. I want to have an image backup additional to files backup, but i want to take the image online, without pause or suspend the VM guests. Did anyone try to create image backups online? What about http://wiki.qemu.org/Features/Livebackup? Can you please advise? -- Andry Michaelidou Papa | IT Systems Administrator|Department of Computer Science| University of Cyprus Tel: +357.22.892734 | Fax: +357.22.8927231 | http://www.cs.ucy.ac.cy ___ CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt ___ CentOS-virt mailing list CentOS-virt@centos.org mailto: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 mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt
Re: [CentOS-virt] KVM online backup images
I have DRBD to another machine, that means that the LVM is replicated over the network, you can stop the replication process of the LVM and do the snapshot on the Secondary Host Machine (No VM poweroff on the Primary Host), then restart DRBD sync. Live snapshot is something I am planing to do in the next few days. You can do it either way, but if Live snapshot is feasible, then just a cron job of snashot and backup will sufice, although I do recomend to use also corosync and pacemaker for fail-over and the backup job to be more of a service that you can shutdown if something goes wrong. This is an ongoing project so I am still learning a lot in the process with the little time I have. Sorry for not having all the testing done and information at the moment. On 11/27/2012 10:50 AM, Andry Michaelidou wrote: Dear Rudi Servo, So you actually have to power off VM guest to take the LVM snapshot and then synchronize the disk with DRDB. Do you automated this procedure using a cronjob or anything similar? Did you restore an image with success? Thank you all, -- Andry Michaelidou Papa | IT Systems Administrator|Department of Computer Science| University of Cyprus Tel: +357.22.892734 | Fax: +357.22.8927231 | http://www.cs.ucy.ac.cy On 27/11/2012 13:39, Philip Durbin wrote: see also http://fedoraproject.org/wiki/Features/Virt_Live_Snapshots#Live_backup and http://www.redhat.com/archives/libvir-list/2012-July/msg00782.html via http://irclog.perlgeek.de/crimsonfu/2012-10-24 On Nov 27, 2012, at 6:23 AM, Rudi Servo rudise...@gmail.com mailto:rudise...@gmail.com wrote: I don't believe that Centoss yet capable of such feature, live backup is recent and FAIK its available on Fedora 17/18. To workaround this issue I use DRBD and LVM snapshot. This feature is a must have since it's capable to snapshot disk-only (ie. qcow2), making easier to rsync and copy a entire disk without having the hole storage allocated or having big lvm's back and forth. Hope I helped On 11/27/2012 07:45 AM, Andry Michaelidou wrote: Hello to you all! We are implementing here at the University KVM virtualization for our servers and services and i was wondering if anyone try to automatically backup images. I am actually using logical volumes for the VM guests. All virtual clients are installed in their LVM logical volume. We are already use IBM TSM for backup as we used to when we had physical machines, ie install client in OS and manage files and data backup. I want to have an image backup additional to files backup, but i want to take the image online, without pause or suspend the VM guests. Did anyone try to create image backups online? What about http://wiki.qemu.org/Features/Livebackup? Can you please advise? -- Andry Michaelidou Papa | IT Systems Administrator|Department of Computer Science| University of Cyprus Tel: +357.22.892734 | Fax: +357.22.8927231 | http://www.cs.ucy.ac.cy ___ CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt ___ CentOS-virt mailing list CentOS-virt@centos.org mailto: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 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] KVM + virsh nodeinfo + CentOS 6.3
Hi there, today I encountered the very same problem as described by Zoltan. We are running a system with the Intel serverboard S2600CP and two E5-2620 Xeon processors, with a total of 2 x 6 Cores with 2 threads each (resulting in a total CPU count of 24). Base system is a CentOS 6.3 with all recent updates. We are running the setup for some months now, without any problems. Most virtual machines only got 4 vCPUs, but some got 6 or 8 vCPUs. That setup was fine if running CentOS 5, CentOS 6 or Windows Server 2008 as guest systems. However, today I had to install two machines with Debian Squeeze. The first one got 4 vCPUs and runs fine, while the second one got 6 vCPUs and does not boot at all. Booting stops shortly after detecting the virtio harddisk with its partitions. When I switch back to 4 vCPUs everything is fine. Since the RHEL 5.8 and 6.3 kernels work fine, it seems to be a problem specific to the Debian kernel. Our default setup pins the different vCPUs to one fixed physical CPU each in an interleaving way. This would be the setup from /etc/libvirt/qemu/vm.xml: memory unit='KiB'12582912/memory currentMemory unit='KiB'12582912/currentMemory vcpu placement='static'6/vcpu cputune vcpupin vcpu='0' cpuset='0-5,12-17'/ vcpupin vcpu='1' cpuset='6-11,18-23'/ vcpupin vcpu='2' cpuset='0-5,12-17'/ vcpupin vcpu='3' cpuset='6-11,18-23'/ vcpupin vcpu='4' cpuset='0-5,12-17'/ vcpupin vcpu='5' cpuset='6-11,18-23'/ /cputune os type arch='x86_64' machine='rhel6.3.0'hvm/type boot dev='hd'/ /os features acpi/ apic/ pae/ /features cpu mode='host-model' model fallback='allow'/ topology sockets='6' cores='1' threads='1'/ /cpu clock offset='utc'/ on_poweroffdestroy/on_poweroff on_rebootrestart/on_reboot on_crashrestart/on_crash Such a setup works fine for Redhat-kernels, but not for the Debian kernel (did only test the default 2.6.32-5 amd64 kernel so far). I played a bit with the pinning and topology, but even setting the config to do no pinning at all, and for example use 8 vCPUs divided in 2 sockets with 4 cores, or 1 socket with 8 cores or any other combination of it, does not work. The only way to get the Debian VM to boot, is to roll back to a total of 4 vCPUs (or less). As a reference, these are the cpuflags, seen from the host: processor : 23 vendor_id : GenuineIntel cpu family : 6 model : 45 model name : Intel(R) Xeon(R) CPU E5-2620 0 @ 2.00GHz stepping: 7 cpu MHz : 1995.156 cache size : 15360 KB physical id : 1 siblings: 12 core id : 5 cpu cores : 6 apicid : 43 initial apicid : 43 fpu : yes fpu_exception : yes cpuid level : 13 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 x2apic popcnt aes xsave avx lahf_lm ida arat epb xsaveopt pln pts dts tpr_shadow vnmi flexpriority ept vpid bogomips: 3989.83 clflush size: 64 cache_alignment : 64 address sizes : 46 bits physical, 48 bits virtual power management: and these are the cpuflags seen from the guest: processor : 3 vendor_id : GenuineIntel cpu family : 6 model : 42 model name : Intel Xeon E312xx (Sandy Bridge) stepping: 1 cpu MHz : 1995.191 cache size : 4096 KB fpu : yes fpu_exception : yes cpuid level : 13 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss syscall nx lm constant_tsc arch_perfmon rep_good pni pclmulqdq ssse3 cx16 sse4_1 sse4_2 x2apic popcnt aes xsave avx hypervisor lahf_lm bogomips: 3990.38 clflush size: 64 cache_alignment : 64 address sizes : 46 bits physical, 48 bits virtual power management: The host is running this kernel: 2.6.32-279.11.1.el6.x86_64 #1 SMP Tue Oct 16 15:57:10 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux Packages are up to date: qemu-kvm-0.12.1.2-2.295.el6_3.2.x86_64 libvirt-0.9.10-21.el6_3.5.x86_64 The kvm commandline looks like this (for 4 vCPUs): /usr/libexec/qemu-kvm -S -M rhel6.3.0 -cpu SandyBridge,+pdpe1gb,+osxsave,+tsc-deadline,+dca,+pdcm,+xtpr,+tm2,+est,+smx,+vmx,+ds_cpl,+monitor,+dtes64,+pbe,+tm,+ht,+ss,+acpi,+ds,+vme -enable-kvm -m 12288 -smp 4,sockets=4,cores=1,threads=1 -name -uuid ---- -nodefconfig -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/xx.monitor,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc -no-shutdown -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 -drive
[CentOS-virt] KVM + virsh nodeinfo + CentOS 6.3
Hi, Please let me know in case I am posting my question to the wrong forum. I apologize if that is the case! Here is my question: We run CentOS 6.3 on a server with dual Xeon CPU's. Our dual blade server uses this motherboard: http://www.supermicro.com/products/motherboard/Xeon/C600/X9DRT-HF.cfm We have two of these CPUs installed and working: Intel(R) Xeon(R) CPU E5-2620 0 @ 2.00GHz ( http://ark.intel.com/products/64594/Intel-Xeon-Processor-E5-2620-15M-Cache-2_00-GHz-7_20-GTs-Intel-QPI ) cat /proc/cpuinfo correctly reports a total of 24 cores (2 x 6 phisycal cores plus 2 x 6 hyperthreading cores) However, I get this output from virsh nodeinfo : # virsh nodeinfo CPU model: x86_64 CPU(s): 24 CPU frequency: 2000 MHz CPU socket(s): 1 Core(s) per socket: 6 Thread(s) per core: 2 NUMA cell(s):2 Memory size: 16303552 kB As you can see, virsh nodeinfo reports only 1 CPU socket while in fact we have two CPU's. I would like to know if this is normal? Why does virsh reports only one physical CPU ?? Also, when we try to run a guest OS (Debian Linux squeeze) with more than 4 vcpu's assigned to the VM, the guest OS won't boot up. The guest's kernel stuck on a screen right after it detected the /dev/vda block device and its partitions. We're using the VirtIO driver, of course. If I assign only 4 (or less) vcpu's to the guest OS it works fine. I have tried to upgrade the Linux kernel on the guest from debian backports, it did not help, we're experiencing the same issue with both the 2.6.32 and 3.2 Linux kernels. What could be causing this? On the host, we use the Linux kernel that came with CentOS 6.3 : 2.6.32-279.11.1.el6.x86_64 #1 SMP Tue Oct 16 15:57:10 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux Thanks, Zoltan ___ CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt
Re: [CentOS-virt] KVM + virsh nodeinfo + CentOS 6.3
Hello, You have a NUMA (Non Uniform Memory Access) machine, which mean that each processor has its own memory controller. virsh nodeinfo give you 2 NUMA cells with 1 CPU socket each: 2 NUMA cells x 1CPU socket x 6 Core(s) per socket x 2 threads per core = 24 cores. The NUMA concept is really important, especially in virtualization. If you have a virtual machine with vCPUs spread across more than one NUMA cell, performances will drop drastically. Maybe you cannot assign more than 4 cPUs to your VM because Libvirt cannot pin them all on the same NUMA cell ... You can try to specify the NUMA architecture in the xml config. Br, Bertrand. Le 24 octobre 2012 à 17:14, Zoltan Frombach zol...@frombach.com a écrit : Hi, Please let me know in case I am posting my question to the wrong forum. I apologize if that is the case! Here is my question: We run CentOS 6.3 on a server with dual Xeon CPU's. Our dual blade server uses this motherboard: http://www.supermicro.com/products/motherboard/Xeon/C600/X9DRT-HF.cfm We have two of these CPUs installed and working: Intel(R) Xeon(R) CPU E5-2620 0 @ 2.00GHz ( http://ark.intel.com/products/64594/Intel-Xeon-Processor-E5-2620-15M-Cache-2_00-GHz-7_20-GTs-Intel-QPI ) cat /proc/cpuinfo correctly reports a total of 24 cores (2 x 6 phisycal cores plus 2 x 6 hyperthreading cores) However, I get this output from virsh nodeinfo : # virsh nodeinfo CPU model: x86_64 CPU(s): 24 CPU frequency: 2000 MHz CPU socket(s): 1 Core(s) per socket: 6 Thread(s) per core: 2 NUMA cell(s): 2 Memory size: 16303552 kB As you can see, virsh nodeinfo reports only 1 CPU socket while in fact we have two CPU's. I would like to know if this is normal? Why does virsh reports only one physical CPU ?? Also, when we try to run a guest OS (Debian Linux squeeze) with more than 4 vcpu's assigned to the VM, the guest OS won't boot up. The guest's kernel stuck on a screen right after it detected the /dev/vda block device and its partitions. We're using the VirtIO driver, of course. If I assign only 4 (or less) vcpu's to the guest OS it works fine. I have tried to upgrade the Linux kernel on the guest from debian backports, it did not help, we're experiencing the same issue with both the 2.6.32 and 3.2 Linux kernels. What could be causing this? On the host, we use the Linux kernel that came with CentOS 6.3 : 2.6.32-279.11.1.el6.x86_64 #1 SMP Tue Oct 16 15:57:10 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux Thanks, Zoltan ___ 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] KVM + virsh nodeinfo + CentOS 6.3
Thank you for your quick reply! I understand the NUMA cell concept and I am using CPU pinning in the XML file. For example: domain type='kvm' nameDebian-/name uuid/uuid memory unit='KiB'8388608/memory currentMemory unit='KiB'8388608/currentMemory vcpu placement='static' cpuset='6-9,18-21'8/vcpu os type arch='x86_64' machine='rhel6.3.0'hvm/type ... /os ... This guest still hangs while starting up its Linux Kernel (3.2.x.x) ... :( Here is my virsh capabilities output from the host (CentOS 6.3): # virsh capabilities capabilities host uuid00020003-0004-0005-0006-000700080009/uuid cpu archx86_64/arch modelSandyBridge/model vendorIntel/vendor topology sockets='1' cores='6' threads='2'/ feature name='pdpe1gb'/ feature name='osxsave'/ feature name='tsc-deadline'/ feature name='dca'/ feature name='pdcm'/ feature name='xtpr'/ feature name='tm2'/ feature name='est'/ feature name='smx'/ feature name='vmx'/ feature name='ds_cpl'/ feature name='monitor'/ feature name='dtes64'/ feature name='pbe'/ feature name='tm'/ feature name='ht'/ feature name='ss'/ feature name='acpi'/ feature name='ds'/ feature name='vme'/ /cpu power_management suspend_disk/ /power_management migration_features live/ uri_transports uri_transporttcp/uri_transport /uri_transports /migration_features topology cells num='2' cell id='0' cpus num='12' cpu id='0'/ cpu id='1'/ cpu id='2'/ cpu id='3'/ cpu id='4'/ cpu id='5'/ cpu id='12'/ cpu id='13'/ cpu id='14'/ cpu id='15'/ cpu id='16'/ cpu id='17'/ /cpus /cell cell id='1' cpus num='12' cpu id='6'/ cpu id='7'/ cpu id='8'/ cpu id='9'/ cpu id='10'/ cpu id='11'/ cpu id='18'/ cpu id='19'/ cpu id='20'/ cpu id='21'/ cpu id='22'/ cpu id='23'/ /cpus /cell /cells /topology /host guest os_typehvm/os_type arch name='i686' wordsize32/wordsize emulator/usr/libexec/qemu-kvm/emulator machinerhel6.3.0/machine machine canonical='rhel6.3.0'pc/machine machinerhel6.2.0/machine machinerhel6.1.0/machine machinerhel6.0.0/machine machinerhel5.5.0/machine machinerhel5.4.4/machine machinerhel5.4.0/machine domain type='qemu' /domain domain type='kvm' emulator/usr/libexec/qemu-kvm/emulator /domain /arch features cpuselection/ deviceboot/ pae/ nonpae/ acpi default='on' toggle='yes'/ apic default='on' toggle='no'/ /features /guest guest os_typehvm/os_type arch name='x86_64' wordsize64/wordsize emulator/usr/libexec/qemu-kvm/emulator machinerhel6.3.0/machine machine canonical='rhel6.3.0'pc/machine machinerhel6.2.0/machine machinerhel6.1.0/machine machinerhel6.0.0/machine machinerhel5.5.0/machine machinerhel5.4.4/machine machinerhel5.4.0/machine domain type='qemu' /domain domain type='kvm' emulator/usr/libexec/qemu-kvm/emulator /domain /arch features cpuselection/ deviceboot/ acpi default='on' toggle='yes'/ apic default='on' toggle='no'/ /features /guest /capabilities And the odd thing is this: virsh freecell only provides a total, not a per node list: # virsh freecell Total: 15891284 kB According to this Fedora page http://docs.fedoraproject.org/en-US/Fedora/13/html/Virtualization_Guide/ch25s06.html I should see a per node list. Anyway, my Debian guest still does not boot up when I assign more than 4 vcpus to it. Even if I pin all cpus to the same NUMA node. BTW, I have copied my host CPU's configuration and CPU features for my guests (using virt-manager GUI, running remotely on an Ubuntu desktop box). Maybe I should use some predefined CPU type instead of cloning CPU configuration from the host?? Zoltan On 10/24/2012 5:58 PM, bertrand.louarg...@atoutlinux.net wrote: Hello, You have a NUMA (Non Uniform Memory Access) machine, which mean that each processor has its own memory controller. virsh nodeinfo give you 2 NUMA cells with 1 CPU socket each: 2 NUMA cells x 1CPU socket x 6 Core(s) per socket x 2 threads per core = 24 cores. The NUMA concept is really important, especially in virtualization. If you have a virtual machine with vCPUs spread across more than one NUMA cell, performances will drop drastically. Maybe you cannot assign more than 4 cPUs to your VM because Libvirt cannot pin them all on the same
[CentOS-virt] KVM serial cards
I am returning to an old question and am investigating whether or not the following device even exists. I would like to find a PCI or PCIe multi-port serial card that supports MSI or MSIx. Is there such a creature? -- *** 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] KVM - Virtio drivers for Centos 5.1
On Apr 25, 2012, at 5:46 PM, Lars Hecking wrote: aurfalien writes: Hi all, Really enjoying KVM as I was a long time user of Xen. Both are cool, just enjoying the new thing. Wondering if any one could share some nuggets on how to get a Centos 5.1 VM guest to use virtio? Trying to use virtio over the ide. Are you talking about a windows guest? Hi, So I updated my Centos 5.1 guest kernel only, to 2.6.18-308.4.1. Does this or can it have virtio support? Do I need to install other packages? - aurf ___ CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt
Re: [CentOS-virt] KVM - Virtio drivers for Centos 5.1
On 26.04.2012 22:53, aurfalien wrote: On Apr 25, 2012, at 5:46 PM, Lars Hecking wrote: aurfalien writes: Hi all, Really enjoying KVM as I was a long time user of Xen. Both are cool, just enjoying the new thing. Wondering if any one could share some nuggets on how to get a Centos 5.1 VM guest to use virtio? Trying to use virtio over the ide. Are you talking about a windows guest? Hi, So I updated my Centos 5.1 guest kernel only, to 2.6.18-308.4.1. Does this or can it have virtio support? Do I need to install other packages? - aurf ___ CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt If that kernel is the one from Centos 5.4 or newer, then you might get lucky; ideally you should update the whole thing to latest. Any reason to not do so? -- Sent from the Delta quadrant using Borg technology! Nux! www.nux.ro ___ CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt
Re: [CentOS-virt] KVM - Virtio drivers for Centos 5.1
On 26.04.2012 23:12, aurfalien wrote: On Apr 26, 2012, at 6:07 PM, Nux! wrote: On 26.04.2012 22:53, aurfalien wrote: On Apr 25, 2012, at 5:46 PM, Lars Hecking wrote: aurfalien writes: Hi all, Really enjoying KVM as I was a long time user of Xen. Both are cool, just enjoying the new thing. Wondering if any one could share some nuggets on how to get a Centos 5.1 VM guest to use virtio? Trying to use virtio over the ide. Are you talking about a windows guest? Hi, So I updated my Centos 5.1 guest kernel only, to 2.6.18-308.4.1. Does this or can it have virtio support? Do I need to install other packages? - aurf ___ CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt If that kernel is the one from Centos 5.4 or newer, then you might get lucky; ideally you should update the whole thing to latest. Any reason to not do so? Well, its a software license server and I dont want to break anything. I would rather just update whats needed as the kernel update didn't seem to work. Or, should I change the fstab on the running VM after setting the disk type to virtio first? I assume the mount points should be /dev/vda# etc... Yes, virtio devices are /dev/vdX. You might be better off using UUIDs or LABELs instead. -- Sent from the Delta quadrant using Borg technology! Nux! www.nux.ro ___ CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt
Re: [CentOS-virt] KVM - Virtio drivers for Centos 5.1
aurfalien writes: Hi all, Really enjoying KVM as I was a long time user of Xen. Both are cool, just enjoying the new thing. Wondering if any one could share some nuggets on how to get a Centos 5.1 VM guest to use virtio? Trying to use virtio over the ide. Are you talking about a windows guest? Installing the vm with virt-install, use --disk path=/path/to/disk,device=disk,bus=virtio \ --disk path=/tmp/virtio-win-1.1.16.vfd,device=floppy,perms=ro The first line specifies the disk for the vm (e.g. C drive), I usually use an lvol. The second line specifies the path to the virtual floppy drive with the virtio drivers. For xp, you cannot use the cdrom/.iso version of same, the xp installer accepts only a floppy (F6, install 3rd party drivers). Newer windows versions may be able to deal with an iso. Digimer's tutorial is well worth a read, even if you end up doing something entirely different. https://alteeve.com/w/2-Node_Red_Hat_KVM_Cluster_Tutorial ___ CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt
Re: [CentOS-virt] KVM, VLAN and Bridges and bonding
Greetings, On Fri, Mar 2, 2012 at 7:22 PM, Baptiste AGASSE baptiste.aga...@lyra-network.com wrote: Hi all, I use CentOS5.x + Xen in production for virtualization. I use it with bridged vlan networks and bonding (active-backup) like that: eth0 eth1 | | --- | bond0---bond0.10-bond0.12 ... | | | | vlanbr10 vlanbr12 dom0 | | - -- | | | | | | ... domU1 domU2 domU3 domU4 domU5 domU6 For future hypervisors, i want to implement the same things with CentOS6.x + KVM. In test env i've setup CentOS6.2 + KVM (with last updates) with the same network config, but guest lose network connection very often, and i don't know why. Network config: /etc/sysconfig/network-scripts/ifcfg-bond0.6: DEVICE=bond0.6 BRIDGE=vlanbr6 ONBOOT=yes BOOTPROTO=none VLAN=yes TYPE=Ethernet /etc/sysconfig/network-scripts/ifcfg-vlanbr6: DEVICE=vlanbr6 TYPE=Bridge ONBOOT=yes BOOTPROTO=none DELAY=0 I've installed guest like that (with a lot of retry because of network loss during installation) virt-install --name=guest02-c6 --disk path=/var/lib/libvirt/images/guest02-c6.img,size=10,sparse=false --graphics=spice,keymap=fr --vcpus=2 --ram=2048 --location=http://spacewalk.example.com/pub/dist/centos/6/x86_64/ --extra-args=ks=http://spacewalk.example.com/pub/ks/el6/guest02.el6.cfg ip=192.168.2.12 netmask=255.255.255.224 gateway=192.168.2.10 dns=192.168.2.10 --os-type=linux --os-variant=rhel6 --network=bridge:vlanbr6,model=virtio Someone have setup similar environment ? Regards. Baptiste. Have you tried Digimer's stuff: https://alteeve.com/w/2-Node_Red_Hat_KVM_Cluster_Tutorial Maybe that will give you some pointers HTH -- Regards, Rajagopal ___ CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt
[CentOS-virt] KVM and shared disc...
Hi all I have deploy some VM's with MS Windows 2008 R2. I deploy it using virt-manager, on CentOS 6. On the same host where I installed CentOS I have installed LIO-Target to, in order to providing iSCSI storage to VM's, 'cause I need install Windows Cluster failover here. I was work with iSCSI initiator from inside each VM's but this pratice show me very instable situations. Now, I use iscsi-initiator direct from host, on physical linux server and I try to seek the iSCSI storage from that host... I was capable to found the device and attached into VM settings, via virt-manager. But, when I try to start the VM, I get this message: libvirtError: internal error Process exited while reading console log output char device redirected to /dev/pts/2 qemu-kvm+ -device lsi,id=scsi0,bus=pci.0,addr=0x7: Parameter 'driver' expects a driver name Try with argument '?' for a list Someone has take this error someday??? Thanks -- Gilberto Nunes (47) 8861-6672 (47) 9676-7530 msn: gilbertonunesferre...@hotmail.com Skype: gilberto.nunes36 -- ___ CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt
Re: [CentOS-virt] kvm-qemu: unable to execute QEMU command savevm (monitor missing?)
On Tue, Oct 4, 2011 at 7:42 PM, Jason Brian Friedrich m...@friedrich.org.uk wrote: Hey Trey, just a quick update. If you add the CR repo for CentOS 6.0 you will get an updated RPM which solves the problem for me. - Jason On Tue, Oct 4, 2011 at 01:43, Trey Dockendorf treyd...@gmail.com wrote: On Tue, Sep 27, 2011 at 6:48 AM, Jason Brian Friedrich m...@friedrich.org.uk wrote: System: CentOS Linux release 6.0 (final) Kernel: 2.6.32-71.23.1.el6.x86_64 KVM: QEMU PC emulator version 0.12.1 (qemu-kvm-0.12.1.2) Libvirt: ibvirtd (libvirt) 0.8.1 Hi everyone, I only recently subscribed to this list and hope you can shed some light on the following error. I created a VM on my Centos 6 KVM machine, used a qcow2 image and wanted to create a snapshot via 'virsh snapshot-create' command: // [root@kvmhost ~]# virsh snapshot-create server01 error: internal error unable to execute QEMU command 'savevm': The command savevm has not been found \\ I googled before the post, found some [0] threads [1], but could not find an answer how to solve the problem. If the kvm-qemu lacks the support of a savevm monitor, how can I add one? Do I need to recompile kvm-qemu with special flags or is simply a RPM package or a module missing? Thanks in advance, - Jason [0] http://lists.centos.org/pipermail/centos-virt/2011-July/002557.html [1] https://www.redhat.com/archives/libvirt-users/2011-August/msg00011.html ___ CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt I ran into this too. Unfortunately I haven't found a solution either, but here's an interesting bug report that shows this effects all the way up to Fedora 15, https://bugzilla.redhat.com/show_bug.cgi?id=727709. The one fix mentioned 89241fe0, I've actually patched into the CentOS libvirt RPM, but from testing it doesn't seem to be enough. I now can run the snapshot-create command without error, but nothing appears to happen. I've tested creating files, taking a snapshot, deleting files and reverting and nothing comes back or changes. Also the qcow2 images don't change at all during this time either. I'm working on applying the other commits mentioned in Comment #4, but am running into problems since most of those commits are 0.9.0+ and I'm patching CentOS's 0.8.1. I'd love to know if anyone actually has snapshots working in CentOS 5 or 6. This is kind of a critical feature to the entire virtualization process. - Trey ___ 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 Awesome thanks for the info! Unfortunately I hit a new error, very related it seems to the original problem, but then I get this error --- # virsh snapshot-create CentOSVM_0 error: operation failed: failed to take snapshot using command 'savevm 1317846732' In full debug output I see it failover to HMP, but this is what appears to be the relevant debug info. If the full debug is desired let me know (it's like 1000 lines long spanning 1 second) --- 15:27:12.473: 8080: debug : qemuMonitorJSONIOProcessLine:116 : Line [{error: {class: CommandNotFound, desc: The command human-monitor-command has not been found, data: {name: human-monitor-command}}}] 15:27:12.473: 8080: debug : virJSONValueFromString:933 : string={error: {class: CommandNotFound, desc: The command human-monitor-command has not been found, data: {name: human-monitor-command}}} This was with libvirt-0.8.7-18.el6_1.1 from CentOS 6 CR. I restarted the libvirtd daemon after the upgrade, still same result. Restarted the VM also , still same. I only updated libvirt, libvirt-client and libvirt-python from CR, haven't done a full system update. I'll try the full update next, but any suggestions are welcome in the mean time. Thanks - Trey ___ CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt
Re: [CentOS-virt] kvm-qemu: unable to execute QEMU command savevm (monitor missing?)
Hey Trey, just a quick update. If you add the CR repo for CentOS 6.0 you will get an updated RPM which solves the problem for me. - Jason On Tue, Oct 4, 2011 at 01:43, Trey Dockendorf treyd...@gmail.com wrote: On Tue, Sep 27, 2011 at 6:48 AM, Jason Brian Friedrich m...@friedrich.org.uk wrote: System: CentOS Linux release 6.0 (final) Kernel: 2.6.32-71.23.1.el6.x86_64 KVM: QEMU PC emulator version 0.12.1 (qemu-kvm-0.12.1.2) Libvirt: ibvirtd (libvirt) 0.8.1 Hi everyone, I only recently subscribed to this list and hope you can shed some light on the following error. I created a VM on my Centos 6 KVM machine, used a qcow2 image and wanted to create a snapshot via 'virsh snapshot-create' command: // [root@kvmhost ~]# virsh snapshot-create server01 error: internal error unable to execute QEMU command 'savevm': The command savevm has not been found \\ I googled before the post, found some [0] threads [1], but could not find an answer how to solve the problem. If the kvm-qemu lacks the support of a savevm monitor, how can I add one? Do I need to recompile kvm-qemu with special flags or is simply a RPM package or a module missing? Thanks in advance, - Jason [0] http://lists.centos.org/pipermail/centos-virt/2011-July/002557.html [1] https://www.redhat.com/archives/libvirt-users/2011-August/msg00011.html ___ CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt I ran into this too. Unfortunately I haven't found a solution either, but here's an interesting bug report that shows this effects all the way up to Fedora 15, https://bugzilla.redhat.com/show_bug.cgi?id=727709. The one fix mentioned 89241fe0, I've actually patched into the CentOS libvirt RPM, but from testing it doesn't seem to be enough. I now can run the snapshot-create command without error, but nothing appears to happen. I've tested creating files, taking a snapshot, deleting files and reverting and nothing comes back or changes. Also the qcow2 images don't change at all during this time either. I'm working on applying the other commits mentioned in Comment #4, but am running into problems since most of those commits are 0.9.0+ and I'm patching CentOS's 0.8.1. I'd love to know if anyone actually has snapshots working in CentOS 5 or 6. This is kind of a critical feature to the entire virtualization process. - Trey ___ 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] kvm-qemu: unable to execute QEMU command savevm (monitor missing?)
On Tue, Sep 27, 2011 at 6:48 AM, Jason Brian Friedrich m...@friedrich.org.uk wrote: System: CentOS Linux release 6.0 (final) Kernel: 2.6.32-71.23.1.el6.x86_64 KVM: QEMU PC emulator version 0.12.1 (qemu-kvm-0.12.1.2) Libvirt: ibvirtd (libvirt) 0.8.1 Hi everyone, I only recently subscribed to this list and hope you can shed some light on the following error. I created a VM on my Centos 6 KVM machine, used a qcow2 image and wanted to create a snapshot via 'virsh snapshot-create' command: // [root@kvmhost ~]# virsh snapshot-create server01 error: internal error unable to execute QEMU command 'savevm': The command savevm has not been found \\ I googled before the post, found some [0] threads [1], but could not find an answer how to solve the problem. If the kvm-qemu lacks the support of a savevm monitor, how can I add one? Do I need to recompile kvm-qemu with special flags or is simply a RPM package or a module missing? Thanks in advance, - Jason [0] http://lists.centos.org/pipermail/centos-virt/2011-July/002557.html [1] https://www.redhat.com/archives/libvirt-users/2011-August/msg00011.html ___ CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt I ran into this too. Unfortunately I haven't found a solution either, but here's an interesting bug report that shows this effects all the way up to Fedora 15, https://bugzilla.redhat.com/show_bug.cgi?id=727709. The one fix mentioned 89241fe0, I've actually patched into the CentOS libvirt RPM, but from testing it doesn't seem to be enough. I now can run the snapshot-create command without error, but nothing appears to happen. I've tested creating files, taking a snapshot, deleting files and reverting and nothing comes back or changes. Also the qcow2 images don't change at all during this time either. I'm working on applying the other commits mentioned in Comment #4, but am running into problems since most of those commits are 0.9.0+ and I'm patching CentOS's 0.8.1. I'd love to know if anyone actually has snapshots working in CentOS 5 or 6. This is kind of a critical feature to the entire virtualization process. - Trey ___ CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt
[CentOS-virt] kvm-qemu: unable to execute QEMU command savevm (monitor missing?)
System: CentOS Linux release 6.0 (final) Kernel: 2.6.32-71.23.1.el6.x86_64 KVM: QEMU PC emulator version 0.12.1 (qemu-kvm-0.12.1.2) Libvirt: ibvirtd (libvirt) 0.8.1 Hi everyone, I only recently subscribed to this list and hope you can shed some light on the following error. I created a VM on my Centos 6 KVM machine, used a qcow2 image and wanted to create a snapshot via 'virsh snapshot-create' command: // [root@kvmhost ~]# virsh snapshot-create server01 error: internal error unable to execute QEMU command 'savevm': The command savevm has not been found \\ I googled before the post, found some [0] threads [1], but could not find an answer how to solve the problem. If the kvm-qemu lacks the support of a savevm monitor, how can I add one? Do I need to recompile kvm-qemu with special flags or is simply a RPM package or a module missing? Thanks in advance, - Jason [0] http://lists.centos.org/pipermail/centos-virt/2011-July/002557.html [1] https://www.redhat.com/archives/libvirt-users/2011-August/msg00011.html ___ CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt
Re: [CentOS-virt] KVM CO 5.6 VM guest crashes running iSCSI
It was resolved by re-installing the KVM host with CentOS 6.0, unfortunately there is not official CentOS 5.6 - CentOS 6.0 upgrade path. Vladimir On Wed, Sep 14, 2011 at 3:56 PM, Momonth momo...@gmail.com wrote: Hi All, I'm running KVM host on CentOS 5.6 x64, all of my guests are CO 5.6 x64 as well. I create / run VMs via libvirt. Here are the packages I have: # rpm -qa | egrep kvm|virt kvm-83-224.el5.centos python-virtinst-0.400.3-11.el5 kvm-qemu-img-83-224.el5.centos kmod-kvm-83-224.el5.centos libvirt-python-0.8.2-15.el5 etherboot-zroms-kvm-5.4.4-13.el5.centos libvirt-0.8.2-15.el5 libvirt-devel-0.8.2-15.el5 The problem: I attached an iSCSI LUN (netapp appliance) to a guest and everything work fine with iscsi-initiator-utils-6.2.0.872-6.el5: LUN discovery, attaching to the host etc. After that I'm trying to copy ~ 140Gb of data to that LUN via scp from another server in the network and the VM crashes after ~ 1 hour of copying .. Nothing in the VM / KVM host logs importunately. Who has / had similar issues with iSCSI LUNs being connected to a guest? Thanks, Vladimir ___ CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt
[CentOS-virt] KVM CO 5.6 VM guest crashes running iSCSI
Hi All, I'm running KVM host on CentOS 5.6 x64, all of my guests are CO 5.6 x64 as well. I create / run VMs via libvirt. Here are the packages I have: # rpm -qa | egrep kvm|virt kvm-83-224.el5.centos python-virtinst-0.400.3-11.el5 kvm-qemu-img-83-224.el5.centos kmod-kvm-83-224.el5.centos libvirt-python-0.8.2-15.el5 etherboot-zroms-kvm-5.4.4-13.el5.centos libvirt-0.8.2-15.el5 libvirt-devel-0.8.2-15.el5 The problem: I attached an iSCSI LUN (netapp appliance) to a guest and everything work fine with iscsi-initiator-utils-6.2.0.872-6.el5: LUN discovery, attaching to the host etc. After that I'm trying to copy ~ 140Gb of data to that LUN via scp from another server in the network and the VM crashes after ~ 1 hour of copying .. Nothing in the VM / KVM host logs importunately. Who has / had similar issues with iSCSI LUNs being connected to a guest? Thanks, Vladimir ___ CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt
[CentOS-virt] KVM vs ESXi
Morning Everyone, I'm busy doing a rebuild of my home server and am tossing between VMware and KVM for this build. I already have experience with ESX, we use it at work, but I'm debating trying out KVM for a while. The server itself is a budget build using a Supermicro X8SAX board w/ i7-950 12GB RAM, LSI 3081 SAS RAID (1068e based), rolled into a NorcoTek 16 Bay SAS case. Not fancy but also decent enough for home use. I don't expect high performance out of this unit so unless the gear is hopelessly outclassed, I'm not in a position to entertain upgrading. Right now forking over $1000-$1500 on a $2000 system for a pair of higher end LSI/3ware/Acreca controller just isn't in the budget. ;-) My question to everyone are these: -How well does KVM support Windows Guests? I'm already running a Server 2008r2 and WHS 2011 (based on 08r2) machines at home which I want to consolidate into this box. -Does KVM have a concept of virtual switches and and are they tied to physical NICs? ESXi allows me to create a vSwitch that isn't tied to a physical NIC so I can create a DMZ that exists solely within the host system. I'd like to replicate that if possible. I know these are probably questions that I could answer on my own by RTFM but I have already, and never really got the answers I needed. Pretty much every how-to assumed I'd be doing basic stuff and not dabbling with advanced stuff. I also know that what's written doesn't always match what's in the field and you folks are the field. And with CentOS 6 just around the corner (no flame wars please, my nomex pants are at the cleaners :-P ) I'm wanting to know if it's worth holding off another month or so on finalizing my build. Thanks, -- Drew Nothing in life is to be feared. It is only to be understood. --Marie Curie ___ CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt
Re: [CentOS-virt] KVM vs ESXi
On Wed, May 18, 2011 at 6:46 AM, Gilberto Nunes gilberto.nune...@gmail.com wrote: -Does KVM have a concept of virtual switches and and are they tied to physical NICs? ESXi allows me to create a vSwitch that isn't tied to a physical NIC so I can create a DMZ that exists solely within the host system. I'd like to replicate that if possible. Yes... You can use VirtManager to work with this feature... And in fact I'd say it's concept is *better*. KVM/libvirt just leverages the built-in virtual switching (bridging) support in Linux accessible through brctl. So you can create virtual bridges, tie ethernet devices to them, and have visibility into what's going on using standard tools like brctl and iproute2 tools if you'd like (instead of VirtManager). You can also use stuff like iptables to filter traffic going across bridges... Sad to admit it, but I have a Linux box functioning as a router which also runs KVM domains ... eth0 is a bridge port (so no IP address), the virtual switch br0 has both the router internal IP (.1) and the service-providing IP of the box (still the IP I used to manage the KVM host from before I was using it as the router), eth1 has multiple VLANs with IPs on our Fiber WAN and the local out-of-band network. The NICs of the guests are also attached to br0, naturally. And of course iptables is able to securely filter traffic across all that. It's a stopgap measure, but works flawlessly. If you want a NAT subnet, behind the scenes it's real Linux routing with iptables snat module (or masquerade). Your host-only network is a bridge without any hardware NICs attached as ports, only KVM NICs. And so on. Sublime! Eric PS, all the above is also true for running Xen on CentOS, though it comes with its own scripts for setting up the bridging instead of leveraging libvirt to do it ___ CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt
[CentOS-virt] KVM switch in promiscuous mode
Hi all, I am trying to enable promiscuous mode on a kvm switch due to sniff all traffic using snort installed on a kvm guest. I have found a partial solution configuring this bridge with brctl setaging br0 0, but all vms sees all traffic. I think the soultion is using ebtables but I didn't found any doc about how can I do under kvm (and upstream recommends disable this function). Any ideas?? Thanks. -- CL Martinez carlopmart {at} gmail {d0t} com ___ CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt
[CentOS-virt] KVM, virsh attach-disk problems
Greetings, list! I hope you forgive cross-posting - I only now found this list. I am in the process of configuring a KVM stack of about 8 vms. Mostly I am concerned about performance, as there will be a lot of I/O. My last problem is this: I try to add a fresh, unformatted disk partition to a KVM guest. I follow the directions given here: http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/5/html-single/Virtualization/index.html#proc-Virtualization-Adding_storage_devices_to_guests-Adding_physical_block_devices_to_virtualized_guests First I check that the module acpiphp is present on the guest. It is. On the host I write: virsh attach-disk test1 /dev/sdb1 sda --driver tap --mode shareable - test1 is my guest domain - /dev/sdb1 is the name of the unformatted partition on the host - sda is what it is supposed to be called on the guest (the name is unused on the guest) - the example in RHEL Virtualization guide says --mode readonly. This does not sound right for a hard disk; hence I try --mode shareable; the error (see below) however is the same, whichever I use Now, the command above produces this error. I find no google results with this error text. Can someone tell, what causes the error? error: Failed to attach disk error: operation failed: adding scsi disk controller failed: type scsi not a hotpluggable PCI device. failed to add if=scsi I found a post (2009, on fedora-virt list), which is relevant: http://www.redhat.com/archives/fedora-virt/2009-December/msg00032.html Otherwise, I have found almost nothing! BTW, I can attach a disk to the KVM guest, using a virtio driver: [root@113 info]# virsh attach-disk test1 /dev/sdd1 vdb --driver virtio --mode shareable Disk attached successfully I have not seen any mention anywhere about using virtio drivers like this. And the problem with this is that the new disk does not survive guest reboot. At guest startup virsh complains about the virtio drivers. - Jussi -- Jussi Hirvi * Green Spot Suvilahdenkatu 1 B 78 * 00500 Helsinki * Finland Tel. +358 9 493 981 * Mobile +358 40 771 2098 (only sms) jussi.hi...@greenspot.fi * http://www.greenspot.fi ___ CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt
Re: [CentOS-virt] KVM, virsh attach-disk problems
Maybe my question is difficult, though it should not be. Virsh attach-disk seems to be poorly documented. One correction: this was definitely not my last problem - it was only the latest. :-) Now I continue configuring my kvm system with the traditional way - one filesystem per guest. - Jussi On 23.4.2011 17.58, Jussi Hirvi wrote: Greetings, list! I hope you forgive cross-posting - I only now found this list. I am in the process of configuring a KVM stack of about 8 vms. Mostly I am concerned about performance, as there will be a lot of I/O. My last problem is this: I try to add a fresh, unformatted disk partition to a KVM guest. I follow the directions given here: http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/5/html-single/Virtualization/index.html#proc-Virtualization-Adding_storage_devices_to_guests-Adding_physical_block_devices_to_virtualized_guests First I check that the module acpiphp is present on the guest. It is. On the host I write: virsh attach-disk test1 /dev/sdb1 sda --driver tap --mode shareable - test1 is my guest domain - /dev/sdb1 is the name of the unformatted partition on the host - sda is what it is supposed to be called on the guest (the name is unused on the guest) - the example in RHEL Virtualization guide says --mode readonly. This does not sound right for a hard disk; hence I try --mode shareable; the error (see below) however is the same, whichever I use Now, the command above produces this error. I find no google results with this error text. Can someone tell, what causes the error? error: Failed to attach disk error: operation failed: adding scsi disk controller failed: type scsi not a hotpluggable PCI device. failed to add if=scsi I found a post (2009, on fedora-virt list), which is relevant: http://www.redhat.com/archives/fedora-virt/2009-December/msg00032.html Otherwise, I have found almost nothing! BTW, I can attach a disk to the KVM guest, using a virtio driver: [root@113 info]# virsh attach-disk test1 /dev/sdd1 vdb --driver virtio --mode shareable Disk attached successfully I have not seen any mention anywhere about using virtio drivers like this. And the problem with this is that the new disk does not survive guest reboot. At guest startup virsh complains about the virtio drivers. - Jussi -- Jussi Hirvi * Green Spot Suvilahdenkatu 1 B 78 * 00500 Helsinki * Finland Tel. +358 9 493 981 * Mobile +358 40 771 2098 (only sms) jussi.hi...@greenspot.fi * http://www.greenspot.fi ___ CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt
[CentOS-virt] KVM and USB support
Hi All, Can anyone with access to RHEL 6 tell me if the official KVM supports USB ports under Windows guests? (I would like to be able to operate Logitech's universal remote.) Many thanks, -T ___ CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt
[CentOS-virt] KVM and Windows /use pmtimer
http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/5/html/Virtualization/chap-Virtualization-KVM_guest_timing_management.html Want to get some more people's opinion on this: the above doc says to use the boot parameter /use pmtimer to use the RTC instead of the TSC for all time sources which resolves guest timing issues. One: does this have any bearing on whether the host has the constant_tsc flag (i.e. are all the sections that follow Configuring hosts without a constant Time Stamp Counter subordinate to it, or does that just have bearing on power management on that one CPU listed---AMD rev F)? Other question: http://support.microsoft.com/kb/938448 implies that for 2003 SP2 /use pmtimer shouldn't be needed as it will use the platform timer (RTC) if you have ACPI or APIC present. (By default, Windows Server 2003 Service Pack 2 (SP2) uses the PM timer for all multiprocessor Advanced Programmable Interrupt Controller (APIC) Hardware Abstraction Layers (HALs) or Advanced Configuration and Power Interface (ACPI) HALs.) Anybody have any experience as to whether this (using ACPI feature in KVM) resolves the timing issues without needing pmtimer explicitly set? Thanks, Eric PGP.sig Description: This is a digitally signed message part ___ CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt
Re: [CentOS-virt] KVM and Windows /use pmtimer
Whenever I create a new VM, I use the windows 2003 template and everything just works. It doesn't matter what OS I use - linux or windows. If I use a template that matches the OS I'm trying to install, like the linux templates. It tends to crash. I wonder if the 2003 template has the right ACPI and APIC emulation... No need for /use pmtimer ___ CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt
Re: [CentOS-virt] KVM: where are the directions?
On 11/14/2010 05:25 PM, compdoc wrote: Unless you have old cards you have to retain, PCI-x isn't useful anymore. Too slow. Depends on what you consider 'too slow'. I just benchmarked an 8 drive software RAID6 (8 x 1.5 TByte Seagate drives) on a PCI-X card (Areca ARC-1120 configured for JBOD operation) at 196 megabytes/second sustained sequential write and 420 megabytes/second sustained sequential read with bonnie++ on a Supermicro PDSMi board. Just how fast do you need? -- Benjamin Franz ___ CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt
Re: [CentOS-virt] KVM: where are the directions?
On 11/15/2010 09:00 AM, compdoc wrote: It's still useful, but why invest in an older technology when the newer technology is there and doesn't cost more? Because it *does* cost more and doesn't (in my case) provide anything special I need feature wise. I already had a nice hot swappable 2U case with dual p/s, a not incredibly old server motherboard, dual core CPU, memory et al available. For an incremental cost of about $460 dollars I bought an Areca 1120 PCI-X controller to match my existing hardware rather than buying more like two thousand dollars in new hardware to do exactly the same thing, at pretty much the same performance level. -- Benjamin Franz ___ CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt
Re: [CentOS-virt] KVM: where are the directions?
2010/11/14 MargoAndTodd margoandt...@gmail.com: On 11/13/2010 07:44 AM, compdoc wrote: $ uname -r -m 2.6.18-194.26.1.el5 i686 $ rpm -qa \*kvm\* kvm-36-1 kmod-kvm-36-3 Not even close to 83. :-( My centos 5.5 has kvm 83. I'm not sure how you got that old stuff I am 32 bit. yum install kvm kmod-kvm You might have it installed it with yum, but in that case you've added 3rd party RPM-repositories (rpmforge, EPEL, etc). These are the packages which were available in *32 bit* CentOS 5.5 at release time (search for kvm and you'll find nothing): http://mirror.stanford.edu/yum/pub/centos/5.5/os/i386/CentOS/ And these are the packages available currently to *32bit* CentOS 5.5 through updates: http://mirror.stanford.edu/yum/pub/centos/5.5/updates/i386/RPMS/ (still nothing) Now, these are the packages which were available in *64bit* CentOS 5.5 at release time: http://mirror.stanford.edu/yum/pub/centos/5.5/os/x86_64/CentOS/ Notice that this list contains kvm-83-164.el5.x86_64.rpm and other related KVM packages... ...and the current 64-bit updates: http://mirror.stanford.edu/yum/pub/centos/5.5/updates/x86_64/RPMS/ which contains several kvm-packages, with the latest being kvm-83-164.el5_5.23.x86_64.rpm. So, as I said, the 32 bit CentOS doesn't contain KVM, not v36, not v83 - you'll need a 64-bit system. Also, if you want a stable system, DON'T use 3rd party repositories unless you take extremely care and know what you're doing. If you enable some random bleeding edge 3rd party repository, and lets yum install packages and updates from it, you could just as well setup your server with some bleeding edge Linux distribution instead of RHEL/CentOS; Fedora, Ubuntu Desktop, Gentoo, Arch Linux, [insert your favorite bleeding edge distro here]. Unless you've setup yum priorities (which is not a good thing either, but better than nothing), yum will always download the unstable packages from the 3rd party repositories, and replace stable CentOS packages with them (since they're newer). Best regards Kenni ___ CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt
Re: [CentOS-virt] KVM: where are the directions?
On 11/14/2010 03:11 PM, Kenni Lund wrote: ...and the current 64-bit updates: http://mirror.stanford.edu/yum/pub/centos/5.5/updates/x86_64/RPMS/ which contains several kvm-packages, with the latest being kvm-83-164.el5_5.23.x86_64.rpm. Guess I will just have to upgrade my office computer to 64 bit. Oh well ... :') (Got my eye on a Supermicro X8SAX and an i7-930.) :-) -T ___ CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt
Re: [CentOS-virt] KVM: where are the directions?
Unless you have old cards you have to retain, PCI-x isn't useful anymore. Too slow. ___ CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt
Re: [CentOS-virt] KVM: where are the directions?
On 11/14/2010 05:25 PM, compdoc wrote: Unless you have old cards you have to retain, PCI-x isn't useful anymore. Too slow. Supermicro X8SAX: 2 (x16) PCI-Express 2.0, 1 (x4) PCI-Express (using X8 slot), 2x 64-bit 133/100MHz PCI-X, 1x 32-bit PCI Slots I put the video and the RAID card in the PCI-e slots. I use the PCI and PCI-x for things like parallel port cards, which cost double for PCI-e. -T ___ CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt
Re: [CentOS-virt] KVM: where are the directions?
kvm-83. That said, as you've probably already read in the docs, KVM is a technology preview in RHEL 5.x...6.0 will be the first version with official/stable KVM support by Red Hat. My understanding is that KVM was tech preview in RHEL/CentOS 5.4 and officially supported from RHEL/CentOS 5.5. Am I mistaken? ___ CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt
Re: [CentOS-virt] KVM: where are the directions?
2010/11/13 MargoAndTodd margoandt...@gmail.com: On 11/11/2010 01:50 PM, Kenni Lund wrote: You'll never need to run it from the command line, use the available management tools (libvirt+virsh from the command line, libvirt+virt-manager from X11), it makes your life much much easier. I've been running qemu-kvm from the command line for several years, and while it's fine to know how the system works, then you definitely don't want to manage your enterprise virtual machines that way. For example, if you start qemu-kvm twice in parallel, with the same HDD image, you'll damage or destroy your HDD image. Libvirt takes care of such banalities and many others. Thank you! These are small business servers. The CentOS server is the only server on the network. I start my VM's in rc.local and shut them down in rd.shutdown (I wrote my own). So, I am stuck with the command line. Thank you for the heads up on running them twice! But, on my new office machine, I will be running them headed, so I will be using your instructions there. Running from the command line doesn't mean you can't use the management tools: Quick'n'dirty overview: Install new guests: virt-install Start guest: virsh start $guestname List running guests: virsh list virsh list --all Shutdown guest (sends an ACPI signal to the guest, telling it to shutdown correctly - same a clicking on the power button for 1 sec on most computers): virsh shutdown $guestname Shutdown guest immediately (like pulling the power cable from a computer): virsh destroy $guestname Edit a guest: virsh edit $guestname etc. etc...run virsh --help and virt-install --help for more options. Best regards Kenni ___ CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt
Re: [CentOS-virt] KVM: where are the directions?
2010/11/13 MargoAndTodd margoandt...@gmail.com: On 11/11/2010 01:50 PM, Kenni Lund wrote: No, you're not running an old version of qemu-kvm in CentOS. Like most other packages, Red Hat has selected an (old and stable) version as the baseline version and then backported bugfixes and new features from newer versions of the package, to fulfill the needs of their enterprise customers. kvm-83 in CentOS is NOT equal to upstream kvm-83. That said, as you've probably already read in the docs, KVM is a technology preview in RHEL 5.x...6.0 will be the first version with official/stable KVM support by Red Hat. Best regards Kenni Hi Kenni, This is my setup: $ cat /etc/redhat-release CentOS release 5.5 (Final) $ uname -r -m 2.6.18-194.26.1.el5 i686 $ rpm -qa \*kvm\* kvm-36-1 kmod-kvm-36-3 Not even close to 83. :-( These KVM-packages are from some 3rd party repository, aren't they? I don't think that 5.5 has KVM support on i686 at all...use CentOS 5.5 x86_64 instead. Best regards Kenni ___ CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt
Re: [CentOS-virt] KVM: where are the directions?
2010/11/13 Mathieu Baudier mbaud...@argeo.org: kvm-83. That said, as you've probably already read in the docs, KVM is a technology preview in RHEL 5.x...6.0 will be the first version with official/stable KVM support by Red Hat. My understanding is that KVM was tech preview in RHEL/CentOS 5.4 and officially supported from RHEL/CentOS 5.5. Sorry, you're right...nevertheless, you still need RHEL/CentOS 6.0 to get stuff like stable ABI for Windows guests. Best regards Kenni ___ CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt
Re: [CentOS-virt] KVM: where are the directions?
$ uname -r -m 2.6.18-194.26.1.el5 i686 $ rpm -qa \*kvm\* kvm-36-1 kmod-kvm-36-3 Not even close to 83. :-( My centos 5.5 has kvm 83. I'm not sure how you got that old stuff ___ CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt
Re: [CentOS-virt] KVM: where are the directions?
On 11/13/2010 02:05 AM, Kenni Lund wrote: 2010/11/13 MargoAndToddmargoandt...@gmail.com: On 11/11/2010 01:50 PM, Kenni Lund wrote: You'll never need to run it from the command line, use the available management tools (libvirt+virsh from the command line, libvirt+virt-manager from X11), it makes your life much much easier. I've been running qemu-kvm from the command line for several years, and while it's fine to know how the system works, then you definitely don't want to manage your enterprise virtual machines that way. For example, if you start qemu-kvm twice in parallel, with the same HDD image, you'll damage or destroy your HDD image. Libvirt takes care of such banalities and many others. Thank you! These are small business servers. The CentOS server is the only server on the network. I start my VM's in rc.local and shut them down in rd.shutdown (I wrote my own). So, I am stuck with the command line. Thank you for the heads up on running them twice! But, on my new office machine, I will be running them headed, so I will be using your instructions there. Running from the command line doesn't mean you can't use the management tools: Quick'n'dirty overview: Install new guests: virt-install Start guest: virsh start $guestname List running guests: virsh list virsh list --all Shutdown guest (sends an ACPI signal to the guest, telling it to shutdown correctly - same a clicking on the power button for 1 sec on most computers): virsh shutdown $guestname Shutdown guest immediately (like pulling the power cable from a computer): virsh destroy $guestname Edit a guest: virsh edit $guestname etc. etc...run virsh --help and virt-install --help for more options. Best regards Kenni ___ CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt Thank you! ___ CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt
Re: [CentOS-virt] KVM: where are the directions?
On 11/13/2010 02:06 AM, Kenni Lund wrote: 2010/11/13 MargoAndToddmargoandt...@gmail.com: On 11/11/2010 01:50 PM, Kenni Lund wrote: No, you're not running an old version of qemu-kvm in CentOS. Like most other packages, Red Hat has selected an (old and stable) version as the baseline version and then backported bugfixes and new features from newer versions of the package, to fulfill the needs of their enterprise customers. kvm-83 in CentOS is NOT equal to upstream kvm-83. That said, as you've probably already read in the docs, KVM is a technology preview in RHEL 5.x...6.0 will be the first version with official/stable KVM support by Red Hat. Best regards Kenni Hi Kenni, This is my setup: $ cat /etc/redhat-release CentOS release 5.5 (Final) $ uname -r -m 2.6.18-194.26.1.el5 i686 $ rpm -qa \*kvm\* kvm-36-1 kmod-kvm-36-3 Not even close to 83. :-( These KVM-packages are from some 3rd party repository, aren't they? I don't think that 5.5 has KVM support on i686 at all...use CentOS 5.5 x86_64 instead. Best regards Kenni To do that I will be need a who new computer. H. (Got me eyes on a Supermicro X8SAX and an i7-930.) -T ___ CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt
Re: [CentOS-virt] KVM: where are the directions?
On 11/13/2010 07:44 AM, compdoc wrote: $ uname -r -m 2.6.18-194.26.1.el5 i686 $ rpm -qa \*kvm\* kvm-36-1 kmod-kvm-36-3 Not even close to 83. :-( My centos 5.5 has kvm 83. I'm not sure how you got that old stuff I am 32 bit. yum install kvm kmod-kvm ___ CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt
Re: [CentOS-virt] KVM: where are the directions?
On 11/11/2010 01:50 PM, Kenni Lund wrote: You'll never need to run it from the command line, use the available management tools (libvirt+virsh from the command line, libvirt+virt-manager from X11), it makes your life much much easier. I've been running qemu-kvm from the command line for several years, and while it's fine to know how the system works, then you definitely don't want to manage your enterprise virtual machines that way. For example, if you start qemu-kvm twice in parallel, with the same HDD image, you'll damage or destroy your HDD image. Libvirt takes care of such banalities and many others. Thank you! These are small business servers. The CentOS server is the only server on the network. I start my VM's in rc.local and shut them down in rd.shutdown (I wrote my own). So, I am stuck with the command line. Thank you for the heads up on running them twice! But, on my new office machine, I will be running them headed, so I will be using your instructions there. -T ___ CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt
Re: [CentOS-virt] KVM: where are the directions?
On 11/11/2010 01:50 PM, Kenni Lund wrote: No, you're not running an old version of qemu-kvm in CentOS. Like most other packages, Red Hat has selected an (old and stable) version as the baseline version and then backported bugfixes and new features from newer versions of the package, to fulfill the needs of their enterprise customers. kvm-83 in CentOS is NOT equal to upstream kvm-83. That said, as you've probably already read in the docs, KVM is a technology preview in RHEL 5.x...6.0 will be the first version with official/stable KVM support by Red Hat. Best regards Kenni Hi Kenni, This is my setup: $ cat /etc/redhat-release CentOS release 5.5 (Final) $ uname -r -m 2.6.18-194.26.1.el5 i686 $ rpm -qa \*kvm\* kvm-36-1 kmod-kvm-36-3 Not even close to 83. :-( -T ___ CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt
Re: [CentOS-virt] KVM: where are the directions?
2010/11/11 MargoAndTodd margoandt...@gmail.com: On 11/10/2010 08:31 PM, Mark Pryor wrote: --- On Wed, 11/10/10, jaye...@gmail.comjaye...@gmail.com wrote: From: jaye...@gmail.comjaye...@gmail.com Subject: Re: [CentOS-virt] KVM: where are the directions? To: Discussion about the virtualization on CentOScentos-virt@centos.org Date: Wednesday, November 10, 2010, 7:15 PM rpm -ql kvm rpm -qa | grep kvm to continue this: - verify an amd64 install of kvm -- $ rpm -qa | grep kvm etherboot-zroms-kvm-5.4.4-13.el5.centos kvm-83-164.el5_5.21 kmod-kvm-83-164.el5_5.21 $ sudo lsmod | grep kvm kvm_amd 69416 0 kvm 226336 2 ksm,kvm_amd yum install bridge-utils tunctl - snip - kvm is basically qemu. The kvm launcher is (by default) not in your path: /usr/libexec/qemu-kvm request help on qemu-kvm and you will see almost the same thing which is in qemu. Trying to learn kvm via libvirt is over-kill - stick with the commandline. You'll never need to run it from the command line, use the available management tools (libvirt+virsh from the command line, libvirt+virt-manager from X11), it makes your life much much easier. I've been running qemu-kvm from the command line for several years, and while it's fine to know how the system works, then you definitely don't want to manage your enterprise virtual machines that way. For example, if you start qemu-kvm twice in parallel, with the same HDD image, you'll damage or destroy your HDD image. Libvirt takes care of such banalities and many others. Fedora 13 Live CD: qemu-kvm -cdrom ./Fedora-13-i686-Live-XFCE.iso -boot d -m 384 -net nic,model=rtl8139 -localtime -usb Froze up at automatic boot in 10 seconds. This is probably because my CentOS 5.5 is 32 bit and I am running a really old version of qemu-kvm. No, you're not running an old version of qemu-kvm in CentOS. Like most other packages, Red Hat has selected an (old and stable) version as the baseline version and then backported bugfixes and new features from newer versions of the package, to fulfill the needs of their enterprise customers. kvm-83 in CentOS is NOT equal to upstream kvm-83. That said, as you've probably already read in the docs, KVM is a technology preview in RHEL 5.x...6.0 will be the first version with official/stable KVM support by Red Hat. Best regards Kenni ___ CentOS-virt mailing list CentOS-virt@centos.org http://lists.centos.org/mailman/listinfo/centos-virt