Hi, Thank you for your reply.
I am sorry that I make a mistake.
I found that I should modify the condor_config file for VM Universe.
And now the content in condor_config file is as follows:
VM_GAHP_SERVER = $(SBIN)/condor_vm-gahp
VM_GAHP_LOG = $(LOG)/VMGahpLog
MAX_VM_GAHP_LOG = 1000000 VM_TYPE = kvm
VM_MEMORY = 2048
VM_NETWORKING = TRUE
VM_NETWORKING_TYPE = nat, bridge
VM_NETWORKING_DEFAULT_TYPE = bridge
VM_MAX_NUMBER = 4
VM_STATUS_INTERVAL = 60
VM_GAHP_REQ_TIMEOUT = 300
VM_RECHECK_INTERVAL = 600
VM_SOFT_SUSPEND = TRUE
LIBVIRT_XML_SCRIPT = $(LIBEXEC)/libvirt_simple_script.awk
VM_BRIDGE_SCRIPT=vif-bridge bridge=em1
VM_NO_OUTPUT_VM=True
vm_cdrom_files=/data/linux_OS_ISO/CentOS-6.4-x86_64-bin-DVD1.iso
vm_should_transfer_cdrom_files=True
vm_checkpoint=True
kvm_disk=/data/htcondor.img:sda2:w:raw
kvm_cdrom_device=/media/cdrom And I create a file(kvm.cmd) as follows:
universe = vm
executable = kvm_sample_job
log = simple.vm.log.txt
vm_type = kvm
vm_memory = 2048
should_transfer_files = YES
when_to_transfer_output = ON_EXIT
transfer_input_files = /myxen/diskfile.img,/myxen/swap.img
vm_cdrom_files=/data/linux_OS_ISO/CentOS-6.4-x86_64-bin-DVD1.iso
vm_should_transfer_cdrom_files=True
vm_checkpoint=True
vm_disk=/data/htcondor.img:sda2:w:raw
kvm_cdrom_device=/media/cdrom
queue And then I run the commond : condor_submit
kvm.cmd
The result is :
Submitting job(s)
NOTE: 'RequestMemory' was NOT specified. Using JobVMMemory = 2048.
.
1 job(s) submitted to cluster 12.
WARNING: the line `kvm_cdrom_device = /media/cdrom' was unused by condor_submit. Is it a typo?
WARNING: the line `when_to_transfer_output = ON_EXIT' was unused by condor_submit. Is it a typo?
WARNING: the line `vm_should_transfer_cdrom_files = True' was unused by condor_submit. Is it a typo?
WARNING: the line `vm_cdrom_files = /data/linux_OS_ISO/CentOS-6.4-x86_64-bin-DVD1.iso' was unused by condor_submit. Is it a typo?
WARNING: the line `should_transfer_files = YES' was unused by condor_submit. Is it a typo? and the result of condor_q is :
-- Submitter: 220.esc.cnic.cn : <159.226.15.220:54892> : 220.esc.cnic.cn
ID OWNER SUBMITTED RUN_TIME ST PRI SIZE CMD
12.0 abc 5/14 19:56 0+00:00:00 I 0 0.0 kvm_sample_job Is that right to use VM Universe?
Where to find the result ?
Thank you very much.
btdan
From: Brian
Candler
Date: 2013-05-14 16:36
To: htcondor-users
CC: btdan
Subject: Re: [HTCondor-users] Help: How to use VM Universe?
Thank you On Tue, May 14, 2013 at 11:22:43AM +0800, btdan wrote:
> I create an vm.cmd file just as follows:
...
> and then run the commond : condor_submit vm.cmd
And what username are you logged in as when you type that command?
> However, the result is :
>
> ERROR: Submitting jobs as user/group 0 (root) is not allowed for securi
> ty reasons.
That looks like a pretty clear error message to me! |