[Users] Related to automatic update or refresh the RHEVM ISO domain !
hello, I upload ISO image using this script *upload.py*: == import os os.system('mkdir mount_dir') os.system('mount -t nfs 15.15.158.2:/iso/rhevmisonfs mount_dir') print 'mounted' print 'start copying' os.system('cp -f CentOS-6.2-x86_64-LiveDVD.iso mount_dir/e3e3b0cd-48a4-4bb8-a75b-07813f2c165e/images/----/') print 'file copied' os.system('umount -a nfs 15.15.158.2:/iso/rhevmisonfs mount_dir') print 'unmounted' os.system('rmdir mount_dir') print 'dir removed' == and I created a *rhevm_test.py * api.vms.add(params.VM(name=VM_NAME, memory=2*GB,os=params.OperatingSystem(boot=[params.Boot(dev='cdrom'), params.Boot(dev='hd')]),cluster=api.clusters.get(name='Default'), template=api.templates.get('Blank'))) print 'VM created' rhevmiso=api.storagedomains.get(name='rhevmiso').files.list() for iso in rhevmiso: print ' iso -- %s \n' % iso image = api.storagedomains.get(name='rhevmiso').files.get(name=' CentOS-6.2-x86_64-LiveDVD.iso ') print 'image found %s' %image api.vms.get(VM_NAME).cdroms.add(params.CdRom(name='cdrom',file=image)) print 'image added to VM' == now i got the following exception : image found none *Note* : the reason is image is copied to rhevmiso storage domain but it not reflected in RHEVM user interface unless and untill I refresh it ! *Do we have any refresh or update function in ovirt sdk so that after coping the image RHEVM ISO domain will get refresh automatically ?? * With Regards, Romil ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [Users] Related to python script for Attach Cd (.iso) to a vm
On 11/05/2012 09:58 AM, Romil Gupta wrote: Do we have any refresh or update function in ovirt sdk so that after coping the image RHEVM will get refresh automatically ?? Regards, Romil yes, just do GET on /api/storagedomains/xxx/files -- Michael Pasternak RedHat, ENG-Virtualization RD ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
[Users] Spice VM doesn't startup: Could not use ca file
Dear oVirt-Community, when I try to start a spice VM (out of the User portal), after a few seconds it stops and the error message: VM spcie-test-1 is down. Exit message: internal error Process exited while reading console log output: char device redirected to /dev/pts/0 do_spice_init: starting 0.10.1 reds_init_ssl: Could not use ca file appears. Any ideas what could help? Best regards Dennis ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [Users] Spice VM doesn't startup: Could not use ca file
Hi, look on this thread: [Users] SPICE and CA Certificate I could resolve your problem doing what I describe there. Alex 2012/11/5 Dennis Böck den...@webdienstleistungen.com Dear oVirt-Community, when I try to start a spice VM (out of the User portal), after a few seconds it stops and the error message: VM spcie-test-1 is down. Exit message: internal error Process exited while reading console log output: char device redirected to /dev/pts/0 do_spice_init: starting 0.10.1 reds_init_ssl: Could not use ca file appears. Any ideas what could help? Best regards Dennis ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [Users] [Spice-devel] Unable to establish spice session
Here it is. BTW, thought I update to Firefox 16 with Spice XPI 2.7 (as was before) - but no luck either. Still getting the same issues. Thanks Alex On 11/04/2012 11:44 AM, Alon Levy wrote: On 11/02/2012 01:35 AM, Alex Leonhardt wrote: Hi, Since today I'm unable to establish a spice session to any/all VMs - the ony thing I see in the (local) logs is this : did you make any change? Nov 1 23:29:02 ale spice: _=/usr/bin/env Nov 1 23:29:03 ale spice: (remote-viewer:5231): GSpiceController-DEBUG: controller.vala:187: new socket client, reading init header Nov 1 23:29:05 ale spice: ** (remote-viewer:5231): DEBUG: unimplemented property: send-cad=FALSE Nov 1 23:29:05 ale spice: ** (remote-viewer:5231): DEBUG: unimplemented property: secure-channels=((GStrv*) 0x1e83270) Nov 1 23:29:06 ale spice: remote-viewer execution failed Is this the full log? can you export the following environment variables and capture the stdout/stderr? export G_MESSAGES_DEBUG=all export SPICE_DEBUG=1 Anyone any idea ? adding spice-devel ___ Spice-devel mailing list spice-de...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/spice-devel Nov 5 21:08:02 ale rsyslogd: [origin software=rsyslogd swVersion=5.8.10 x-pid=1137 x-info=http://www.rsyslog.com;] rsyslogd was HUPed Nov 5 21:19:46 ale spice: starting remote-viewer --spice-controller ... Nov 5 21:19:46 ale spice: ORBIT_SOCKETDIR=/tmp/orbit-ale Nov 5 21:19:46 ale spice: HOSTNAME=ale.local Nov 5 21:19:46 ale spice: IMSETTINGS_INTEGRATE_DESKTOP=yes Nov 5 21:19:46 ale spice: TERM=dumb Nov 5 21:19:46 ale spice: SHELL=/bin/bash Nov 5 21:19:46 ale spice: XDG_SESSION_COOKIE=0ccd2078e766f6148faadbb80026-1352142775.379249-2038070916 Nov 5 21:19:46 ale spice: HISTSIZE=1000 Nov 5 21:19:46 ale spice: XRE_PROFILE_NAME= Nov 5 21:19:46 ale spice: GTK_RC_FILES=/etc/gtk/gtkrc:/home/ale/.gtkrc-1.2-gnome2 Nov 5 21:19:46 ale spice: QTDIR=/usr/lib64/qt-3.3 Nov 5 21:19:46 ale spice: QTINC=/usr/lib64/qt-3.3/include Nov 5 21:19:46 ale spice: IMSETTINGS_MODULE=none Nov 5 21:19:46 ale spice: XRE_PROFILE_LOCAL_PATH= Nov 5 21:19:46 ale spice: USER=ale Nov 5 21:19:46 ale spice: LD_LIBRARY_PATH=/opt/firefox Nov 5 21:19:46 ale spice: XRE_START_OFFLINE= Nov 5 21:19:46 ale spice: SSH_AUTH_SOCK=/tmp/keyring-jlsBak/socket.ssh Nov 5 21:19:46 ale spice: GNOME_KEYRING_SOCKET=/tmp/keyring-jlsBak/socket Nov 5 21:19:46 ale spice: SESSION_MANAGER=local/unix:@/tmp/.ICE-unix/2143,unix/unix:/tmp/.ICE-unix/2143 Nov 5 21:19:46 ale spice: USERNAME=ale Nov 5 21:19:46 ale spice: DESKTOP_SESSION=gnome Nov 5 21:19:46 ale spice: PATH=/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/ale/bin Nov 5 21:19:46 ale spice: MAIL=/var/spool/mail/ale Nov 5 21:19:46 ale spice: QT_IM_MODULE=xim Nov 5 21:19:46 ale spice: PWD=/home/ale Nov 5 21:19:46 ale spice: XMODIFIERS=@im=none Nov 5 21:19:46 ale spice: GDM_KEYBOARD_LAYOUT=gb Nov 5 21:19:46 ale spice: GNOME_KEYRING_PID=2134 Nov 5 21:19:46 ale spice: LANG=en_US.utf8 Nov 5 21:19:46 ale spice: XRE_PROFILE_PATH= Nov 5 21:19:46 ale spice: GDM_LANG=en_US.utf8 Nov 5 21:19:46 ale spice: MODULEPATH=/usr/share/Modules/modulefiles:/etc/modulefiles Nov 5 21:19:46 ale spice: LOADEDMODULES= Nov 5 21:19:46 ale spice: GDMSESSION=gnome Nov 5 21:19:46 ale spice: HISTCONTROL=ignoredups Nov 5 21:19:46 ale spice: SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass Nov 5 21:19:46 ale spice: SPICE_FOREIGN_MENU_SOCKET=/tmp/spicec-TTxEaI/spice-foreign Nov 5 21:19:46 ale spice: SHLVL=2 Nov 5 21:19:46 ale spice: HOME=/home/ale Nov 5 21:19:46 ale spice: GNOME_DESKTOP_SESSION_ID=this-is-deprecated Nov 5 21:19:46 ale spice: LOGNAME=ale Nov 5 21:19:46 ale spice: MOZ_LAUNCHED_CHILD= Nov 5 21:19:46 ale spice: CVS_RSH=ssh Nov 5 21:19:46 ale spice: QTLIB=/usr/lib64/qt-3.3/lib Nov 5 21:19:46 ale spice: DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-FOVdY9eWlp,guid=d11c4f5dfba6382baad3f8030023 Nov 5 21:19:46 ale spice: SPICE_XPI_SOCKET=/tmp/spicec-TTxEaI/spice-xpi Nov 5 21:19:46 ale spice: NO_EM_RESTART= Nov 5 21:19:46 ale spice: MODULESHOME=/usr/share/Modules Nov 5 21:19:46 ale spice: LESSOPEN=|/usr/bin/lesspipe.sh %s Nov 5 21:19:46 ale spice: MOZ_CRASHREPORTER_RESTART_ARG_1= Nov 5 21:19:46 ale spice: XRE_BINARY_PATH= Nov 5 21:19:46 ale spice: MOZ_CRASHREPORTER_RESTART_ARG_0=firefox Nov 5 21:19:46 ale spice: WINDOWPATH=1 Nov 5 21:19:46 ale spice: DISPLAY=:0.0 Nov 5 21:19:46 ale spice: XUL_APP_FILE= Nov 5 21:19:46 ale spice: MOZ_CRASHREPORTER_DATA_DIRECTORY=/home/ale/.mozilla/firefox/Crash Reports Nov 5 21:19:46 ale spice: MOZ_CRASHREPORTER_STRINGS_OVERRIDE=/opt/firefox/crashreporter-override.ini Nov 5 21:19:46 ale spice: NO_AT_BRIDGE=1 Nov 5 21:19:46 ale spice: G_BROKEN_FILENAMES=1 Nov 5 21:19:46 ale spice: XAUTHORITY=/var/run/gdm/auth-for-ale-F43tFc/database Nov 5 21:19:46 ale spice: module=() { eval `/usr/bin/modulecmd bash $*`
[Users] ovirt cli - starting vm with special options
hi, to make it easier for me to play with VMs, I thought of using the ovirt cli to start a VM whenever I want to rebuild it, however, the CLI command below keeps failing - any pointers ? action vm start --vm-os-kernel /var/www/html/repo/centos/6/os/x86_64/images/pxeboot/vmlinuz --vm-os-initRd /var/www/html/repo/centos/6/os/x86_64/images/pxeboot/initrd.img --vm-os-boot ks=http://172.30.0.1/ks/dev/solrm01-dev.ks ksdevice=eth0 ip=172.30.0.249 netmask=255.255.255.0 --host-identifier vm2 alex ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
[Users] Second cdrom device
Hi, Can I somehow attach a second cdrom device to a virtual machine? I was thinking on adding the virtio drivers for Windows OSs this way. Best regards, Cristian ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [Users] Second cdrom device
Using a virtual floppy is probably the easiest way and it's well supported in the UI and API. - Original Message - From: Cristian Falcas cristi.fal...@gmail.com To: users@ovirt.org Sent: Monday, November 5, 2012 6:19:04 PM Subject: [Users] Second cdrom device Hi, Can I somehow attach a second cdrom device to a virtual machine? I was thinking on adding the virtio drivers for Windows OSs this way. Best regards, Cristian ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [Users] Second cdrom device
Does the floppy image needs to be 1.5MB, or can it take any size? On Tue, Nov 6, 2012 at 1:21 AM, Andrew Cathrow acath...@redhat.com wrote: Using a virtual floppy is probably the easiest way and it's well supported in the UI and API. -- *From: *Cristian Falcas cristi.fal...@gmail.com *To: *users@ovirt.org *Sent: *Monday, November 5, 2012 6:19:04 PM *Subject: *[Users] Second cdrom device Hi, Can I somehow attach a second cdrom device to a virtual machine? I was thinking on adding the virtio drivers for Windows OSs this way. Best regards, Cristian ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
[Users] Ovirt Backup
Hi, How do you backup your ovirt-engine ? and what's the backup recovery procedure ? I'm concern about recovering my ovirt-engine if it crashed due to hardware issue, ... I need your suggestion about that. Regards, ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [Users] Second cdrom device
On 11/06/2012 12:23 AM, Cristian Falcas wrote: Does the floppy image needs to be 1.5MB, or can it take any size? i suggest checking :) On Tue, Nov 6, 2012 at 1:21 AM, Andrew Cathrow acath...@redhat.com mailto:acath...@redhat.com wrote: Using a virtual floppy is probably the easiest way and it's well supported in the UI and API. *From: *Cristian Falcas cristi.fal...@gmail.com mailto:cristi.fal...@gmail.com *To: *users@ovirt.org mailto:users@ovirt.org *Sent: *Monday, November 5, 2012 6:19:04 PM *Subject: *[Users] Second cdrom device Hi, Can I somehow attach a second cdrom device to a virtual machine? I was thinking on adding the virtio drivers for Windows OSs this way. Best regards, Cristian ___ Users mailing list Users@ovirt.org mailto:Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [Users] ovirt cli - starting vm with special options
Hi Alex, Your syntax is incorrect, 1. /action syntax is: 'action type id action [parent-object identifiers] [attribute options]' 2. to see detailed help for this action do: 'help action vm vm2 start' or 'help action' 3. in your case /action syntax should be: 'action vm vm2 start ...' 4. also --host-identifier option is not available in this action, please use auto-completion or /help to see available options, for more details, see [1] [1] http://wiki.ovirt.org/wiki/CLI On 11/06/2012 12:46 AM, Alex Leonhardt wrote: hi, to make it easier for me to play with VMs, I thought of using the ovirt cli to start a VM whenever I want to rebuild it, however, the CLI command below keeps failing - any pointers ? action vm start --vm-os-kernel /var/www/html/repo/centos/6/os/x86_64/images/pxeboot/vmlinuz --vm-os-initRd /var/www/html/repo/centos/6/os/x86_64/images/pxeboot/initrd.img --vm-os-boot ks=http://172.30.0.1/ks/dev/solrm01-dev.ks ksdevice=eth0 ip=172.30.0.249 netmask=255.255.255.0 --host-identifier vm2 alex ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users -- Michael Pasternak RedHat, ENG-Virtualization RD ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users