Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature] how to install OS to single disk if multi disks persisted #2

Closed
guazhangRH opened this issue May 20, 2023 · 3 comments
Closed

Comments

@guazhangRH
Copy link

the KS autopart will use all disks to install OS, but sometime we need some free disks as data disk. so is there a easy method to install OS to single disk.

vm RHEL-8.9.% -n test1 --xdisk 20 --xdisk 20 --xdisk 20 --xdisk 20 --xdisk 20 --xdisk 20 --nointeract

@tcler
Copy link
Owner

tcler commented May 21, 2023

seems some compose named like RHEL-x.y.z-updates-.d. released without guest image. please try:
vm create RHEL-8.9.?-2% -n test1 --xdisk 20 --xdisk 20 --xdisk 20 --xdisk 20 --xdisk 20 --xdisk 20 --nointeract -f

you will get expected result:

 ~]$ vm exec test1 -- lsblk
NAME   MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sr0     11:0    1  374K  0 rom  
vda    252:0    0   64G  0 disk 
├─vda1 252:1    0    1M  0 part 
├─vda2 252:2    0  100M  0 part /boot/efi
└─vda3 252:3    0 63.9G  0 part /
vdb    252:16   0   20G  0 disk 
vdc    252:32   0   20G  0 disk 
vdd    252:48   0   20G  0 disk 
vde    252:64   0   20G  0 disk 
vdf    252:80   0   20G  0 disk 
vdg    252:96   0   20G  0 disk 

@tcler
Copy link
Owner

tcler commented May 22, 2023

just added new option --ks-only-use option to kiss-vm for installing with location:

[jiyin@fs-qe kiss-vm-ns]$ vm create RHEL-7.9  -n testvm --nointeract -L --xdisk 20 --xdisk 20 --ks-only-use=vda -f
.
.
[jiyin@fs-qe kiss-vm-ns]$ vm exec testvm -- lsblk
NAME          MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
vda           252:0    0  64G  0 disk
|-vda1        252:1    0   1G  0 part /boot
`-vda2        252:2    0  63G  0 part
  |-rhel-root 253:0    0  41G  0 lvm  /
  |-rhel-swap 253:1    0   2G  0 lvm  [SWAP]
  `-rhel-home 253:2    0  20G  0 lvm  /home
vdb           252:16   0  20G  0 disk
vdc           252:32   0  20G  0 disk

@tcler tcler closed this as completed May 22, 2023
@tcler
Copy link
Owner

tcler commented May 22, 2023

9e408f3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants