Re: [one-users] Windows contextualization
Hello, > Looking at the context.ps1 script here > (https://github.com/OpenNebula/addon-context-windows/blob/master/context.ps1) > it appears that: > > The format of _DNS is a space separated list of DNS server IPs - e.g. > "192.168.0.1 192.168.0.2" > I can't see where _DNS_SEARCH is being set, so I guess it is ignored. > I would expect this to be a list of search domains - the equivalent to the > 'search ' entry inside nsswitch.conf on Linux/Unix systems. Thank you for the answer, that at least helps a little further. But still I hope that someone can tell me what to insert for " ... (I had guessed that the people who wrote that documentation are reading here and know the answer) Regards Christoph ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
[one-users] Windows contextualization
Hello, I want to setup a Windows VM. I found a description about how to contextualize a Windows VM under http://docs.opennebula.org/4.8/user/virtual_machine_setup/windows_context.html, but is there anywhere a complete example of a template with context for Windows VMs? I neither know how network interfaces in Windows are named (so do not know how _IP ist to be expanded), nor do I know the correct format for the values of _DNS and _SEARCH_DOMAIN. Regards Christoph ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
[one-users] Windows contextualization
Hello, (sorry, forgot to change the subject in my last message) I want to setup a Windows VM. I found a description about how to contextualize a Windows VM under http://docs.opennebula.org/4.8/user/virtual_machine_setup/windows_context.html, but is there anywhere a complete example of a template with context for Windows VMs? I neither know how network interfaces in Windows are named (so do not know how _IP ist to be expanded), nor do I know the correct format for the values of _DNS and _SEARCH_DOMAIN. Regards Christoph ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] Problems to delete image completely
Hello, I want to setup a Windows VM. I found a description about how to contextualize a Windows VM under http://docs.opennebula.org/4.8/user/virtual_machine_setup/windows_context.html, but is there anywhere a complete example of a template with context for Windows VMs? I neither know how network interfaces in Windows are named (so do not know how _IP ist to be expanded), nor do I know the correct format for the values of _DNS and _SEARCH_DOMAIN. Regards Christoph ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] Problems to delete image completely
Hello Carlos, ... > You can stop opennebula, and then remove the row with oid 292 from the > image_pool table. ... > The fsck tool [1] should fix that. Stop opennebula, run fsck, and it > will fix the Image state. Many thanks for your help. Both solutions worked. Running fsck was not even necessary, restarting opennebula was sufficient. Regards Christoph ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] Problems to delete image completely
Hello, I wrote: > I created an opennebula disk image (ID 292) and used it in a VM, the VM > did not work, so I deleted first the VM and then the image. But somehow, > opennebula still knows that image. That is, 'oneimage list' still lists, > among others, disk image 292, but any further action on it, like delete or > show, says " [ImageInfo] Error getting image [292]." > > How can I completely remove that image from the opennebula database? Now, I have another problem with another image: I made an image persistent, created a VM with it, deleted the VM but opennebula said that the image was still in use. Then, I changed the image mode to non-persistent, 'oneimage list' now shows state READY, but when I try to create a new VM with that disk image opennebula still says that the disk is already in use. How can I reuse that image? Regards Christoph ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
[one-users] Problems to delete image completely
Hello, I created an opennebula disk image (ID 292) and used it in a VM, the VM did not work, so I deleted first the VM and then the image. But somehow, opennebula still knows that image. That is, 'oneimage list' still lists, among others, disk image 292, but any further action on it, like delete or show, says " [ImageInfo] Error getting image [292]." How can I completely remove that image from the opennebula database? Regards Christoph ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] Booting VM from CD Image
Hello, > Could you please send us through the contents of the deployment file? > It should be in the front-end, under > > /var/lib/one/vms//deployment.0 > I have changed the device prefix from "sr" to "hd" and mount target from "sr0" to "hda", now I can boot from virtual CD. Regards Christoph ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
[one-users] Booting VM from CD Image
Hello, I am using OpenNebula 3.8 with KVM virtualization. In sunstone, I registered an image for a cdrom. sunstone shows the following image information: ID 167 NameUbuntu 9.10 CD Datastore default Owner linux Group users TypeCDROM Register time 16:27:24 10/18/2013 Persistent no Source /var/lib/one/datastores/1/df3a93a824a3df4cfa828471dc034246 Path/var/tmp/thin-body20131018-7588-qfm4nh-0 Filesystem type -- Size (Mb) 691 State USED Running #VMS1 Permissions Owner um- Group --- Other and the following image template: TARGET sr0 DRIVER raw DEV_PREFIX sr DESCRIPTION Ubuntu 9.10 CD After registering the cdrom image, I created a VM Template and included in it a section for the cdrom. That section looks like this: DISK=[ DRIVER="raw", IMAGE="Ubuntu 9.10 CD", IMAGE_UNAME="linux", TARGET="sr0" ] This prevents the VM from starting successfully (without that section, the VM goes to state RUNNING). The error log is: Fri Oct 18 16:31:30 2013 [VMM][I]: Command execution fail: cat << EOT | /var/tmp/one/vmm/kvm/deploy /var/lib/one//datastores/0/1319/deployment.0 cloudhost05 1319 cloudhost05 Fri Oct 18 16:31:30 2013 [VMM][I]: error: Failed to create domain from /var/lib/one//datastores/0/1319/deployment.0 Fri Oct 18 16:31:30 2013 [VMM][I]: error: An error occurred, but the cause is unknown As you can see, the error message is not really helpful. What can I do? Do I have to change entries in my image template or my VM template? Regards Christoph ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] Relationship of cpu usages
Hello, > We have the "logical" OpenNebula level enforcement, and the hypervisor > level. > > First one: the OpenNebula scheduler will not allocate more cpu/memory than > the Host reports as available. > > Hypervisor level reservation: cgroups for kvm, credit scheduler for xen, > and the esx cpu scheduler for vmware So, if I understand correctly, it is like following: 1. One real CPU core represents 100 percent of CPU capacity. 2. The CPU value in VM Templates is related to one CPU core. 3. From the CPU values, OpenNebula calculates how much of the capacity of a cloud node is already used. 4. If a node does not have enough CPU capacity for a new VM, the VM is not started on that node. 5. For the kvm hypervisor, OpenNebula can use the cgroup feature to enforce relationship between CPU values of different VMs. Is this correct? >> I am also wondering why, in sunstone, one cloud node with one VM >> running >> on it shows a CPU usage of 6400. I thought that this is because the user >> set CPU=8, VCPU=8 and 8*8=64, but if CPU= is related to one physical >> CPU, >> that cannot be true ... >> > > Can you please paste the output of 'onehost show ' ? HOST 151 INFORMATION ID: 151 NAME : node18 CLUSTER : - STATE : MONITORED IM_MAD: im_kvm VM_MAD: vmm_kvm VN_MAD: ebtables LAST MONITORING TIME : 04/29 17:06:11 HOST SHARES TOTAL MEM : 252.4G USED MEM (REAL) : 9.1G USED MEM (ALLOCATED) : 8G TOTAL CPU : 6400 USED CPU (REAL) : 384 USED CPU (ALLOCATED) : 6400 RUNNING VMS : 1 MONITORING INFORMATION ARCH="x86_64" CPUSPEED="2100" FREECPU="6016.0" FREEMEMORY="255101900" HOSTNAME="cloudhost18" HYPERVISOR="kvm" MODELNAME="AMD Opteron(TM) Processor 6272 " NETRX="0" NETTX="0" TOTALCPU="6400" TOTALMEMORY="264614860" USEDCPU="384.0" USEDMEMORY="9512960" Regards Christoph ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] Relationship of cpu usages
Hello, > I'm not that much familiar with cgroups, but the way I understand it the first VM does not get 100%, it will get 1024 shares out of 1536 (2/3 of cpu > time). Yes, that's how cgroup works, and I wonder why this is not a conflict with what CPU= in VM Templates means and why the documentation even says that the cgroup "feature can be used to enforce the amount of CPU assigned to a VM, as defined in its template". What about enforcement without cgroup? Isn't there any? I am also wondering why, in sunstone, one cloud node with one VM running on it shows a CPU usage of 6400. I thought that this is because the user set CPU=8, VCPU=8 and 8*8=64, but if CPU= is related to one physical CPU, that cannot be true ... Regards Christoph ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] Relationship of cpu usages
Hello, > I have a new question about that. > > On http://opennebula.org/documentation:rel3.8:kvmg, I read about cgroups: > > "So, thanks to cgroups a VM with CPU=0.5 will get half of the physical CPU > cycles than a VM with CPU=1.0." > > How can a second VM get half of the physical CPU cycles of a first VM if > the first VM is defined to use 100 % of the CPU cycles? Does really nobody know that? Or was my question too difficult to understand or just too stupid? By the way, if every cloudnode has 64 cpu cores and a VM is defined to use 64 virtual cpus, does for example CPU=0.8 mean 80 percent of one cpu core or 80 percent of 64 cpu cores? Regards Christoph ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] Relationship of cpu usages
Hello, > HOST/CPU is the number of cores reported by the hypervisor x 100; 800 = 8 > cpu cores. > VM Template CPU is the number of Host CPU cores reserved for the VM. So > cpu=0.5 means that the Host will allocate 50 from the CPU total for that > VM. I have a new question about that. On http://opennebula.org/documentation:rel3.8:kvmg, I read about cgroups: "So, thanks to cgroups a VM with CPU=0.5 will get half of the physical CPU cycles than a VM with CPU=1.0." How can a second VM get half of the physical CPU cycles of a first VM if the first VM is defined to use 100 % of the CPU cycles? Regards Christoph ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] New authentication type
Hello, I have a new problem with my radius authentication: The passwords are stored in clear text in oned.log, in messages like this: Thu Apr 18 11:19:17 2013 [AuM][D]: Message received: AUTHENTICATE SUCCESS 103 radius christoph.pleger blablabla And oned.log is readable by everyone who can login to the cloud management node! How can I prevent passwords from being stored in clear text, or how can I achieve that oned.log is created with more restrictive permissions? Regards Christoph ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
[one-users] Relationship of cpu usages
Hello, from the documentation, it is not clear for me how real CPUs in the cloud nodes, the number of virtual CPUs for a VM and the CPU percentage for a VM are related to each other. Can someone explain that, please? Regards Christoph ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] New authentication type
Hello, > Try to replicate the ldap authenticate script. To create new users, the > driver needs to print to stdout 'drivername username password' when the > authentication is successful Ah, thank you very much, that was it! I only had to add 'puts "radius #{user} #{pass}" in authenticate before 'exit 0', now it works. Regards Christoph ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] New authentication type
Hello, > That's how the LDAP driver works [1]. To create new users automatically on > their first login, copy or link this dir to your drivers: Authentication itself is successful now, but I get another error now: ---snip--- Fri Apr 12 15:35:22 2013 [AuM][D]: Message received: LOG D 14 authenticate: Radius-Authenticating christoph.pleger, with password Fri Apr 12 15:35:22 2013 [AuM][I]: authenticate: Radius-Authenticating christoph.pleger, with password Fri Apr 12 15:35:22 2013 [AuM][D]: Message received: LOG I 14 ExitCode: 0 Fri Apr 12 15:35:22 2013 [AuM][I]: ExitCode: 0 Fri Apr 12 15:35:22 2013 [AuM][D]: Message received: AUTHENTICATE SUCCESS 14 - Fri Apr 12 15:35:22 2013 [AuM][E]: Can't create user: . Driver response: ---snip--- So far, I changed the following things: 1. Set ':auth: opennebula' in /etc/one/sunstone-server.conf 2. Set authn = "ssh,x509,ldap,server_cipher,server_x509,radius,default" in /etc/one/oned.conf 3. Created /usr/lib/one/ruby/radius_auth.rb 4. Created /var/lib/one/remotes/auth/radius/authenticate 5. Created a link /var/lib/one/remotes/auth/default -> /var/lib/one/remotes/auth/radius I have attached my files radius_auth.rb and authenticate. Sorry if my ruby is not good, I am a really new newbie to ruby. Regards Christoph ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
[one-users] New authentication type
Hello, I am trying to add radius authentication for OpennNebula. I have written a small ruby file for that and I can successfully login to sunstone, but I still have to create a user with "oneuser create" and choose a password for the user, and authentication only works if that password and the radius password are the same. What I would like to have is that users do not have to be in obennebula's user database before their first login and that the users are automatically added to the user database on their first login. How can I achieve that? Regards Christoph ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] Forcing a specific VM state
Hello, it seems that nobody here knows how to force state RUNNING. Maybe someone knows how to migrate a VM to another cloud node with linux commands other than those from ObenNebula? Regards Christoph ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] Forcing a specific VM state
Hello, > It should come back to RUNNING when it is monitored again. You mean, when the real host where the VM is running is monitored again? I have disabled that host because I had serious problems in the cloud and probably the problems were caused by that host. I fear that problems will start again when I enable it again without for example rebooting it before. What I would like to do is to force RUNNING state and then migrate the VM. Regards Christoph ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
[one-users] Forcing a specific VM state
Hello, when 'onevm list' shows a VM in state UNKNOWN, but I know that it is RUNNING, is it possible to force OpenNebula to see that VM as RUNNING? Regards Christoph ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org