LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-19-2019, 04:04 AM   #1
bulletproof.rs
Member
 
Registered: Jun 2011
Posts: 51

Rep: Reputation: Disabled
Help with using virt-install to install VPS on remote server with --location


Hello everyone,

I'm not sure if this should go to Server section of Software, but I'll try here since it has more to do with software.

We have a KVM hypervisor cluster in our company, i created a script for myself to ease the pain during creation of virtual machines. Lately I've been wanting to improve it by using --extra-args command line option to automatically parse kickstart command line on installation so i don't have to type it in manually when it boots.

When script finishes, it will compile a list of arguments to pass to virt-install command installed to my PC, to run it against remote server.

This is the command in question, when done.

Code:
virt-install --connect=qemu+ssh://kvm_hypervisor-03/system \
--name=vps32 \
--hvm \
--graphics vnc \
--disk path=/dev/mapper/vps32,bus=virtio,cache=none \
--vcpus 1 \
--ram=2048 \
--network bridge=br31,model=virtio \
--network bridge=br7,model=virtio \
--location=/ISO/CentOS-7-x86_64-DVD-1804.iso \
--extra-args="ksdevice=eth1 inst.ks=http://192.168.51.52/ks/vps32.cfg" \
--boot hd,cdrom,menu=on \
--os-type=linux \
--os-variant=rhel7 \
--metadata description="Hosting.VPS - tiket: CQU-291-12285"
ISO File that I've put into --location argument is located on remote server, not on my machine, so i have this error:

Code:
ERROR    Cannot access install tree on remote connection: /ISO/CentOS-7-x86_64-DVD-1804.iso
Is there a way to force virt-install --location parameter to use ISO file on actual hypervisor, rather than me sharing it over the network or something like this. That file exists on the hypervisor, that's for sure.
 
  


Reply

Tags
kvm, linux, qemu, ssh, virt-install



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Virsh/Virt-Manager/Virt-Install broken after upgrade to Xubuntu 17.10 Zabzoo Linux - Desktop 2 02-01-2018 08:05 AM
Copy file from remote location to another remote location alsharifhoussam Linux - Server 4 01-29-2014 12:47 PM
LXer: Hacking libvirt/virsh/virt-manager/virt-install at Xen 4.0 Dom0 on top of Ubunt LXer Syndicated Linux News 0 05-06-2010 02:50 PM
LXer: Virt-install&Virt-manager at Xen 4.0-rc8 (2.6.32.10 pvops) Dom0 on top Ubuntu K LXer Syndicated Linux News 0 03-26-2010 09:41 PM
location, location, location! mermxx LQ Suggestions & Feedback 9 09-25-2004 03:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration