Forked from yuuichi-fujioka/install package to qcow image.sh
Last active
June 5, 2021 21:52
-
-
Save sfxworks/98a2384258f97beae2e4b0a2a3d9b81c to your computer and use it in GitHub Desktop.
Revisions
-
sfxworks revised this gist
Jun 5, 2021 . 1 changed file with 9 additions and 9 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -4,20 +4,20 @@ sudo modprobe nbd sudo qemu-nbd --connect=/dev/nbd0 /full/path/to/qcow2/image/file sudo mkdir /mnt/debian sudo mount /dev/nbd0p1 /mnt/debian sudo mount -t proc proc /mnt/debian/proc/ sudo mkdir /mnt/debian/run/resolvconf sudo cp /etc/resolv.conf //mnt/debian/run/resolvconf/ sudo chroot /mnt/debian apt-get update sudo chroot /mnt/debian apt-get install foo -y sudo umount /mnt/debian/proc sync sudo umount /mnt/debian sudo qemu-nbd --disconnect /dev/nbd0 -
yuuichi-fujioka revised this gist
Jun 4, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,6 @@ sudo apt-get install qemu-utils sudo modprobe nbd sudo qemu-nbd --connect=/dev/nbd0 /full/path/to/qcow2/image/file -
yuuichi-fujioka revised this gist
Apr 17, 2014 . 1 changed file with 4 additions and 5 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -12,13 +12,12 @@ sudo mount -t proc proc /mnt/ubuntu/proc/ sudo mkdir /mnt/ubuntu/run/resolvconf sudo cp /etc/resolv.conf //mnt/ubuntu/run/resolvconf/ sudo chroot /mnt/ubuntu apt-get update sudo chroot /mnt/ubuntu apt-get install foo -y sudo umount /mnt/ubuntu/proc sync sudo umount /mnt/ubuntu sudo qemu-nbd --disconnect /dev/nbd0 -
yuuichi-fujioka revised this gist
Apr 17, 2014 . 1 changed file with 7 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -15,4 +15,10 @@ sudo cp /etc/resolv.conf //mnt/ubuntu/run/resolvconf/ sudo chroot /mnt/ubuntu sudo apt-get update sudo apt-get install foo eixt sudo umount /mnt/ubuntu/proc sudo umount /mnt/ubuntu sudo qemu-nbd --disconnect /dev/nbd0 -
yuuichi-fujioka revised this gist
Apr 17, 2014 . 1 changed file with 8 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -8,4 +8,11 @@ sudo mkdir /mnt/ubuntu sudo mount /dev/nbd0p1 /mnt/ubuntu sudo mount -t proc proc /mnt/ubuntu/proc/ sudo mkdir /mnt/ubuntu/run/resolvconf sudo cp /etc/resolv.conf //mnt/ubuntu/run/resolvconf/ sudo chroot /mnt/ubuntu sudo apt-get update sudo apt-get install foo -
yuuichi-fujioka created this gist
Apr 17, 2014 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ sudo apt-get install qemu-utils sudo modprove nbd sudo qemu-nbd --connect=/dev/nbd0 /full/path/to/qcow2/image/file sudo mkdir /mnt/ubuntu sudo mount /dev/nbd0p1 /mnt/ubuntu sudo mount -t proc proc /mnt/ubuntu/proc/