[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: local virt-install



On Sun, Jul 15, 2012 at 11:40:28PM +0200, Paul van der Vlis wrote:
> 
> Ik gebruik nu dit en dat werkt goed (let op afgebroken regels):
> --------
> qemu-img create -f qcow2 /data/$VM.qcow2 10G
> 
> virt-install -d --name=$VM --ram 1024 \
>   --os-variant=debianwheezy \
>   --disk path=/data/$VM.qcow2,format=qcow2,bus=virtio,cache=none,size=10,serial$ \
>   --network bridge=br0,model=virtio \
>   --controller=virtio-serial \
> --location=http://ftp.debian.org/debian/dists/wheezy/main/installer-amd64/ \
>   --extra-args='console=ttyS0,115200' \
>   --graphics none
> --------
> 
   <knip/>
> 
> Wat ik nog graag zou willen is dat de "--location" lokaal is. Dat lukt
> me tot nu toe niet, als ik gebruik "--location=/mnt/", dan krijg ik deze
> foutmelding:
> --------
> ValueError: Could not find an installable distribution at '/mnt/'
> The location must be the root directory of an install tree.
> --------
> 
> Maar geen idee wat nu precies een "root directory of an install tree"
> is. Bovenstaande is een gemounte iso, gemount met:
> mount -o loop debian-testing-amd64-i386-netinst.iso /mnt
> 


Ik heb geen virt-install (manual), maar wel de suggestie

 --location=copy:/mnt \


Uit de manual van multistrap:

   'source' is the apt source to use for this Section. To use a local
   source on the same machine, ensure you use "copy://" not "file://",
   so that apt is told to copy the packages into the rootfs instead of
   assuming it can try to download them later - because that "later"
   will never actually happen.



Groeten
Geert Stappers
-- 
> And is there a policy on top-posting vs. bottom-posting?
Yes.


Reply to: