about summary refs log tree commit diff stats
path: root/tools/qemu.html
diff options
context:
space:
mode:
authorSilvino <silvino@bk.ru>2021-03-03 03:07:44 +0000
committerpunk <punk@libernaut>2021-04-21 15:11:33 +0100
commit452477a2635d85ecf772a5242ce97d9479503bb3 (patch)
treea2e34d995cef5ac8068ec7047e93b1125c80d175 /tools/qemu.html
parent4de5ad72311e351792c251eaf807885a493149a4 (diff)
downloaddoc-452477a2635d85ecf772a5242ce97d9479503bb3.tar.gz
OpenBSD documentation
dev/c system dev rev
Diffstat (limited to 'tools/qemu.html')
-rw-r--r--tools/qemu.html32
1 files changed, 18 insertions, 14 deletions
diff --git a/tools/qemu.html b/tools/qemu.html
index 04c367d..44f48ae 100644
--- a/tools/qemu.html
+++ b/tools/qemu.html
@@ -43,7 +43,7 @@
         this describes how to create a qcow2 type;</p>
 
         <pre>
-        $ qemu-img create -f qcow2 crux-img.qcow2 15G
+        $ qemu-img create -f qcow2 crux-img.qcow2 20G
         </pre>
 
         <h3 id="mount">2.1. Mount images</h3>
@@ -68,19 +68,15 @@
 	     unit mib \
 	     mkpart primary 2 4 \
 	     name 1 grub \
-	     mkpart ESP fat32 4 128 \
+	     mkpart ESP fat32 4 132 \
 	     name 2 efi \
-	     mkpart primary ext4 128 1128 \
+	     mkpart primary ext4 132 1132 \
 	     name 3 boot \
-	     mkpart primary ext4 1128 12128 \
-	     name 4 root \
-	     mkpart primary ext4 12128 14128 \
-	     name 5 var \
-	     mkpart primary ext4 14128 100% \
-	     name 6 lvm \
+	     mkpart primary 1132 100% \
+	     name 4 lvm \
 	     set 1 bios_grub on \
 	     set 2 boot on \
-	     set 6 lvm on
+             set 4 lvm on
         </pre>
 
         <pre>
@@ -90,11 +86,19 @@
         <p>Use /dev/mapper/$(name_of_device) to assign correct blocks;</p>
 
         <pre>
+	pvcreate           /dev/mapper/${DEV_NAME}p4
+        vgcreate vg_system /dev/mapper/${DEV_NAME}p4
+        lvcreate -L 15G -n lv_root vg_system
+        lvcreate -L 2G -n lv_var vg_system
+        lvcreate -l 100%FREE -n lv_home vg_system
+        </pre>
+
+        <pre>
 	mkfs.fat -F 32  /dev/mapper/${DEV_NAME}p2
 	mkfs.ext4       /dev/mapper/${DEV_NAME}p3
-	mkfs.ext4       /dev/mapper/${DEV_NAME}p4
-	mkfs.ext4       /dev/mapper/${DEV_NAME}p5
-	pvcreate        /dev/mapper/${DEV_NAME}p6
+	mkfs.ext4       /dev/vg_system/lv_root
+	mkfs.ext4       /dev/vg_system/lv_var
+	mkfs.ext4       /dev/vg_system/lv_home
         </pre>
 
 	<p>Read <a href="lvm.html">lvm</a> documentation on how to setup
@@ -103,7 +107,7 @@
         <p>Mount partition;</p>
 
         <pre>
-	mount /dev/mapper/${DEV_NAME}p4 $CHROOT
+	mount /dev/vg_system/
 	mkdir -p $CHROOT/proc
 	mkdir -p $CHROOT/sys
 	mkdir -p $CHROOT/dev