Sample Header Ad - 728x90

Unix & Linux Stack Exchange

Q&A for users of Linux, FreeBSD and other Unix-like operating systems

Latest Questions

1 votes
2 answers
3571 views
Unable to connect to Linux VM from Windows 7 Desktop
ssh destination: --VM : Oracle VM Virtual Box 4.3.20 --Linux installed on VM: Fedora 22 (IP: 10.0.2.15 ) ssh source: --Windows 7 Desktop I installed putty on Windows 7 Desktop and am trying to connect to Fedora 22 VM using putty. To make this work, I have configured "port forwarding" from Oracle VM...
ssh destination: --VM : Oracle VM Virtual Box 4.3.20 --Linux installed on VM: Fedora 22 (IP: 10.0.2.15 ) ssh source: --Windows 7 Desktop I installed putty on Windows 7 Desktop and am trying to connect to Fedora 22 VM using putty. To make this work, I have configured "port forwarding" from Oracle VM GUI menu. enter image description here for the "Host IP", I tried the "IPV4 Address" under "Wireless LAN adapter Connection" since I am on wifi at home. I also tried "IPV4 Adddress" under "Ethernet adapter VirtualBox Host-only Network". Finally I tried 127.0.0.1 for the "Host IP". None of these work. Upon all of the above attempts, I receive "Connection timed out" from my putty. enter image description here Once I can make this work, my next goal is to ssh from one VM to another VM. FYI - My second VM shows the same IP address of the first VM I put in, I am guessing I need to change the IP address of the second VM manually. Please let me know if you have any advice on this as well.
LPGA (43 rep)
Oct 3, 2015, 03:16 PM • Last activity: Jun 3, 2025, 07:01 AM
0 votes
0 answers
403 views
Error while trying to resize a disk partition
Im trying to resize a disk partition in Ubuntu 22.04 in OracleVM. I already resize the disk in the VM software but in Ubuntu the disk still with the old size. I think it resize but in a new partition and I can't use that partition. When trying to change the disk size in the Ubuntu disk management th...
Im trying to resize a disk partition in Ubuntu 22.04 in OracleVM. I already resize the disk in the VM software but in Ubuntu the disk still with the old size. I think it resize but in a new partition and I can't use that partition. When trying to change the disk size in the Ubuntu disk management this error pops out: enter image description here Any solution? I need to be able to use the disk.
Sebastian Viollaz (51 rep)
Jan 11, 2023, 01:50 PM
1 votes
1 answers
721 views
How should I use session cookies with OVMM Rest API and Ansible URI Module
I am able to use the Oracle Virtual Machine Manager (OVMM) REST API successfully with the Ansible URI module with the exception that I have to pass the username and password to EACH call instead of grabbing the session cookies from the first call and using them thereafter. As I understand it the fol...
I am able to use the Oracle Virtual Machine Manager (OVMM) REST API successfully with the Ansible URI module with the exception that I have to pass the username and password to EACH call instead of grabbing the session cookies from the first call and using them thereafter. As I understand it the following should work, however I get a '401 Unauthorized' from the second call. I have tried a number of variations in the second call. When I debug the playbook I see the cookies (JSESSIONID and _WL_AUTHCOOKIE_JSESSIONID) are being passed as expected. To be clear, if I change the second API call to use basic_auth, username and password it works.
- name: Get OVM Manager
    local_action:
        module: uri
        url: "{{ baseuri }}/Manager"
        url_username: "{{ ovmUser }}"
        url_password: "{{ ovmPassword }}"
        validate_certs: false
        force_basic_auth: true
        method: GET
    register: login

  - name: Get info about VMs
    local_action:
      module: uri
      url: "{{ baseuri }}/Vm/id"
      validate_certs: false
      method: GET
      headers:
        Cookie: "{{ login.cookies_string }}"  # Why doesn't this work???
Justin Lake (321 rep)
Jun 17, 2022, 07:34 AM • Last activity: Aug 8, 2022, 02:54 PM
0 votes
2 answers
20755 views
Kali Linux 2020.2 Stuck on dragon logo
I have an installed Kali linux 2020.2 on my Oracle VM and by mistake I turned my computer OFF when the Oracle was saving the session ... and now when I'm trying to boot on it get stuck at "the Dragon logo" [![the Dragon logo][1]][1] [1]: https://i.sstatic.net/Gns38.png What I've tried so far: - Left...
I have an installed Kali linux 2020.2 on my Oracle VM and by mistake I turned my computer OFF when the Oracle was saving the session ... and now when I'm trying to boot on it get stuck at "the Dragon logo" the Dragon logo What I've tried so far: - Left it for an hour ... and it always stuck as the image above shows - I changed the Kernel I tried 5.6.0, 5.7.0, 5.8.0, 5.9.0 - And for grub I tried with splash (delete this value) and quit (change it to non-quit) **How to fix that boot problem**
Robotix (33 rep)
Dec 3, 2020, 11:01 PM • Last activity: Jun 28, 2022, 05:13 PM
1 votes
1 answers
62 views
deleting data in a domU-mounted image does not reduce the image size
I have difficulties understanding the following situation: Dom0 image: ``` [root@Dom0]# du -h 19.12.0.0_dbhome_1.img 980M 19.12.0.0_dbhome_1.img ``` is mounted on DomU: ``` [root@DomU]# df -h /u01/app/oracle/product/19.12.0.0/dbhome_1 Filesystem Size Used Avail Use% Mounted on /dev/xvde 50G 62M 47G...
I have difficulties understanding the following situation: Dom0 image:
[root@Dom0]# du -h 19.12.0.0_dbhome_1.img
980M    19.12.0.0_dbhome_1.img
is mounted on DomU:
[root@DomU]# df -h /u01/app/oracle/product/19.12.0.0/dbhome_1
Filesystem      Size  Used Avail Use% Mounted on
/dev/xvde        50G   62M   47G   1% /u01/app/oracle/product/19.12.0.0/dbhome_1
When I write data to /u01/app/oracle/product/19.12.0.0/dbhome_1 the disk usage on DomU and Dom0 increases accordingly:
[root@DomU dbhome_1]# dd if=/dev/zero of=./test.img bs=4k iflag=fullblock,count_bytes > /dev/null
[root@DomU dbhome_1]# df -h /u01/app/oracle/product/19.12.0.0/dbhome_1
Filesystem      Size  Used Avail Use% Mounted on
/dev/xvde        50G   21G   27G  44% /u01/app/oracle/product/19.12.0.0/dbhome_1
[root@Dom0]# du -h 19.12.0.0_dbhome_1.img
21G     19.12.0.0_dbhome_1.img
When I remove the data the diskusage of DomU is being reduced, but Dom0 stays the same:
[root@DomU dbhome_1]# rm test.img
[root@DomU dbhome_1]# df -h /u01/app/oracle/product/19.12.0.0/dbhome_1
Filesystem      Size  Used Avail Use% Mounted on
/dev/xvde        50G   62M   47G   1% /u01/app/oracle/product/19.12.0.0/dbhome_1
[root@Dom0]# du -h 19.12.0.0_dbhome_1.img
21G     19.12.0.0_dbhome_1.img

How does the difference come about?

I did the following procedure to create and mount the image:
[root@Dom0]# qemu-img create 19.12.0.0_dbhome_1.img.img 50G &>/dev/null
[root@Dom0]# xm block-attach domU file:19.12.0.0_dbhome_1.img /dev/xvde w >/dev/null 2>&1
[root@Dom0]# ln -s 19.12.0.0_dbhome_1.img.img /path/to/link/19.12.0.0_dbhome_1.img
[root@Dom0]# vi vm.cfg (added link to disks[] parameter)
[root@DomU]# parted /dev/xvde mklabel gpt &>/dev/null
[root@DomU]# parted -s /dev/xvde mkpart primary 0 100% &>/dev/null
[root@DomU]# parted -s /dev/xvde set 1 lvm on &>/dev/null
[root@DomU]# echo "/dev/xvde /u01/app/oracle/product/19.12.0.0/dbhome_1 ext4 defaults 1 1\" >> /etc/fstab
[root@DomU]# mkfs.ext4 /dev/xvde &>/dev/null
[root@DomU]# mount -a &>/dev/null
Jan (75 rep)
May 31, 2022, 09:18 AM • Last activity: May 31, 2022, 11:06 AM
-1 votes
1 answers
1048 views
how to fix following error in ubuntu coming after installing oracle virtual box
W: Target Packages (contrib/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/virtualbox.list:1 and /etc/apt/sources.list.d/virtualbox.list:2 W: Target Packages (contrib/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/virtualbox.list:1 and /e...
W: Target Packages (contrib/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/virtualbox.list:1 and /etc/apt/sources.list.d/virtualbox.list:2 W: Target Packages (contrib/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/virtualbox.list:1 and /etc/apt/sources.list.d/virtualbox.list:2 W: Target Translations (contrib/i18n/Translation-en_IN) is configured multiple times in /etc/apt/sources.list.d/virtualbox.list:1 and /etc/apt/sources.list.d/virtualbox.list:2 W: Target Translations (contrib/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/virtualbox.list:1 and /etc/apt/sources.list.d/virtualbox.list:2 W: Target DEP-11 (contrib/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list.d/virtualbox.list:1 and /etc/apt/sources.list.d/virtualbox.list:2 W: Target DEP-11 (contrib/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list.d/virtualbox.list:1 and /etc/apt/sources.list.d/virtualbox.list:2 W: Target DEP-11-icons-small (contrib/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list.d/virtualbox.list:1 and /etc/apt/sources.list.d/virtualbox.list:2 W: Target DEP-11-icons (contrib/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list.d/virtualbox.list:1 and /etc/apt/sources.list.d/virtualbox.list:2 W: Target DEP-11-icons-hidpi (contrib/dep11/icons-64x64@2.tar) is configured multiple times in /etc/apt/sources.list.d/virtualbox.list:1 and /etc/apt/sources.list.d/virtualbox.list:2 W: Target CNF (contrib/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list.d/virtualbox.list:1 and /etc/apt/sources.list.d/virtualbox.list:2 W: Target CNF (contrib/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list.d/virtualbox.list:1 and /etc/apt/sources.list.d/virtualbox.list:2 W: Target Packages (contrib/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/virtualbox.list:1 and /etc/apt/sources.list.d/virtualbox.list:3 W: Target Packages (contrib/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/virtualbox.list:1 and /etc/apt/sources.list.d/virtualbox.list:3 W: Target Translations (contrib/i18n/Translation-en_IN) is configured multiple times in /etc/apt/sources.list.d/virtualbox.list:1 and /etc/apt/sources.list.d/virtualbox.list:3 W: Target Translations (contrib/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/virtualbox.list:1 and /etc/apt/sources.list.d/virtualbox.list:3 W: Target DEP-11 (contrib/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list.d/virtualbox.list:1 and /etc/apt/sources.list.d/virtualbox.list:3 W: Target DEP-11 (contrib/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list.d/virtualbox.list:1 and /etc/apt/sources.list.d/virtualbox.list:3 W: Target DEP-11-icons-small (contrib/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list.d/virtualbox.list:1 and /etc/apt/sources.list.d/virtualbox.list:3 W: Target DEP-11-icons (contrib/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list.d/virtualbox.list:1 and /etc/apt/sources.list.d/virtualbox.list:3 W: Target DEP-11-icons-hidpi (contrib/dep11/icons-64x64@2.tar) is configured multiple times in /etc/apt/sources.list.d/virtualbox.list:1 and /etc/apt/sources.list.d/virtualbox.list:3 W: Target CNF (contrib/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list.d/virtualbox.list:1 and /etc/apt/sources.list.d/virtualbox.list:3 W: Target CNF (contrib/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list.d/virtualbox.list:1 and /etc/apt/sources.list.d/virtualbox.list:3 W: Target Packages (contrib/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/virtualbox.list:1 and /etc/apt/sources.list.d/virtualbox.list:4 W: Target Packages (contrib/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/virtualbox.list:1 and /etc/apt/sources.list.d/virtualbox.list:4 W: Target Translations (contrib/i18n/Translation-en_IN) is configured multiple times in /etc/apt/sources.list.d/virtualbox.list:1 and /etc/apt/sources.list.d/virtualbox.list:4 W: Target Translations (contrib/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/virtualbox.list:1 and /etc/apt/sources.list.d/virtualbox.list:4 W: Target DEP-11 (contrib/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list.d/virtualbox.list:1 and /etc/apt/sources.list.d/virtualbox.list:4 W: Target DEP-11 (contrib/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list.d/virtualbox.list:1 and /etc/apt/sources.list.d/virtualbox.list:4 W: Target DEP-11-icons-small (contrib/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list.d/virtualbox.list:1 and /etc/apt/sources.list.d/virtualbox.list:4 W: Target DEP-11-icons (contrib/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list.d/virtualbox.list:1 and /etc/apt/sources.list.d/virtualbox.list:4 W: Target DEP-11-icons-hidpi (contrib/dep11/icons-64x64@2.tar) is configured multiple times in /etc/apt/sources.list.d/virtualbox.list:1 and /etc/apt/sources.list.d/virtualbox.list:4 W: Target CNF (contrib/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list.d/virtualbox.list:1 and /etc/apt/sources.list.d/virtualbox.list:4 W: Target CNF (contrib/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list.d/virtualbox.list:1 and /etc/apt/sources.list.d/virtualbox.list:4 W: Target Packages (contrib/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/virtualbox.list:1 and /etc/apt/sources.list.d/virtualbox.list:2 W: Target Packages (contrib/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/virtualbox.list:1 and /etc/apt/sources.list.d/virtualbox.list:2 W: Target Translations (contrib/i18n/Translation-en_IN) is configured multiple times in /etc/apt/sources.list.d/virtualbox.list:1 and /etc/apt/sources.list.d/virtualbox.list:2 W: Target Translations (contrib/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/virtualbox.list:1 and /etc/apt/sources.list.d/virtualbox.list:2 W: Target DEP-11 (contrib/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list.d/virtualbox.list:1 and /etc/apt/sources.list.d/virtualbox.list:2 W: Target DEP-11 (contrib/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list.d/virtualbox.list:1 and /etc/apt/sources.list.d/virtualbox.list:2 W: Target DEP-11-icons-small (contrib/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list.d/virtualbox.list:1 and /etc/apt/sources.list.d/virtualbox.list:2 W: Target DEP-11-icons (contrib/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list.d/virtualbox.list:1 and /etc/apt/sources.list.d/virtualbox.list:2 W: Target DEP-11-icons-hidpi (contrib/dep11/icons-64x64@2.tar) is configured multiple times in /etc/apt/sources.list.d/virtualbox.list:1 and /etc/apt/sources.list.d/virtualbox.list:2 W: Target CNF (contrib/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list.d/virtualbox.list:1 and /etc/apt/sources.list.d/virtualbox.list:2 W: Target CNF (contrib/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list.d/virtualbox.list:1 and /etc/apt/sources.list.d/virtualbox.list:2 W: Target Packages (contrib/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/virtualbox.list:1 and /etc/apt/sources.list.d/virtualbox.list:3 W: Target Packages (contrib/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/virtualbox.list:1 and /etc/apt/sources.list.d/virtualbox.list:3 W: Target Translations (contrib/i18n/Translation-en_IN) is configured multiple times in /etc/apt/sources.list.d/virtualbox.list:1 and /etc/apt/sources.list.d/virtualbox.list:3 W: Target Translations (contrib/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/virtualbox.list:1 and /etc/apt/sources.list.d/virtualbox.list:3 W: Target DEP-11 (contrib/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list.d/virtualbox.list:1 and /etc/apt/sources.list.d/virtualbox.list:3 W: Target DEP-11 (contrib/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list.d/virtualbox.list:1 and /etc/apt/sources.list.d/virtualbox.list:3 W: Target DEP-11-icons-small (contrib/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list.d/virtualbox.list:1 and /etc/apt/sources.list.d/virtualbox.list:3 W: Target DEP-11-icons (contrib/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list.d/virtualbox.list:1 and /etc/apt/sources.list.d/virtualbox.list:3 W: Target DEP-11-icons-hidpi (contrib/dep11/icons-64x64@2.tar) is configured multiple times in /etc/apt/sources.list.d/virtualbox.list:1 and /etc/apt/sources.list.d/virtualbox.list:3 W: Target CNF (contrib/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list.d/virtualbox.list:1 and /etc/apt/sources.list.d/virtualbox.list:3 W: Target CNF (contrib/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list.d/virtualbox.list:1 and /etc/apt/sources.list.d/virtualbox.list:3 W: Target Packages (contrib/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/virtualbox.list:1 and /etc/apt/sources.list.d/virtualbox.list:4 W: Target Packages (contrib/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/virtualbox.list:1 and /etc/apt/sources.list.d/virtualbox.list:4 W: Target Translations (contrib/i18n/Translation-en_IN) is configured multiple times in /etc/apt/sources.list.d/virtualbox.list:1 and /etc/apt/sources.list.d/virtualbox.list:4 W: Target Translations (contrib/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/virtualbox.list:1 and /etc/apt/sources.list.d/virtualbox.list:4 W: Target DEP-11 (contrib/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list.d/virtualbox.list:1 and /etc/apt/sources.list.d/virtualbox.list:4 W: Target DEP-11 (contrib/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list.d/virtualbox.list:1 and /etc/apt/sources.list.d/virtualbox.list:4 W: Target DEP-11-icons-small (contrib/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list.d/virtualbox.list:1 and /etc/apt/sources.list.d/virtualbox.list:4 W: Target DEP-11-icons (contrib/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list.d/virtualbox.list:1 and /etc/apt/sources.list.d/virtualbox.list:4 W: Target DEP-11-icons-hidpi (contrib/dep11/icons-64x64@2.tar) is configured multiple times in /etc/apt/sources.list.d/virtualbox.list:1 and /etc/apt/sources.list.d/virtualbox.list:4 W: Target CNF (contrib/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list.d/virtualbox.list:1 and /etc/apt/sources.list.d/virtualbox.list:4 W: Target CNF (contrib/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list.d/virtualbox.list:1 and /etc/apt/sources.list.d/virtualbox.list:4
Akshay Mithari (1 rep)
Feb 3, 2022, 07:52 PM • Last activity: Feb 4, 2022, 12:33 PM
0 votes
1 answers
917 views
virtual machine doesn't use allocated disk space
I am running manjaro in an Oracle VirtualBox to test a virgin install of a set of softwares. I am getting an error that there is no more disk space on a particular download, however, when I set up the vm in the VirtualBox Manager, I am allocating it plenty of space (> 100GB). I have tried changing t...
I am running manjaro in an Oracle VirtualBox to test a virgin install of a set of softwares. I am getting an error that there is no more disk space on a particular download, however, when I set up the vm in the VirtualBox Manager, I am allocating it plenty of space (> 100GB). I have tried changing this from dynamic allocation to a fixed partition, but this did not solve the issue. When I run lsblk, this is the output:
NAME  MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
loop0   7:0    0 130.6M  1 loop /run/miso/sfs/livefs
loop1   7:1    0 581.9M  1 loop /run/miso/sfs/mhwdfs
loop2   7:2    0   1.5G  1 loop /run/miso/sfs/desktopfs
loop3   7:3    0 702.8M  1 loop /run/miso/sfs/rootfs
sda     8:0    0   134G  0 disk 
sr0    11:0    1   2.9G  0 rom  /run/miso/bootmnt
So to me it looks like the 134gb partition needs to be mounted? I run sudo fdisk -l to see where it is:
Disk /dev/sda: 134.01 GiB, 143895691264 bytes, 281046272 sectors
Disk model: VBOX HARDDISK   
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop0: 130.6 MiB, 136945664 bytes, 267472 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop1: 581.94 MiB, 610209792 bytes, 1191816 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop2: 1.47 GiB, 1582903296 bytes, 3091608 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop3: 702.77 MiB, 736907264 bytes, 1439272 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
I am running the installs from my $HOME directory (which in this case is /home/manjaro), so I try sudo mount /dev/sda /home/manjaro, and this is the output:
mount: /home/manjaro: wrong fs type, bad option, bad superblock on /dev/sda, missing codepage or helper program, or other error.
Output of df -h:
Filesystem      Size  Used Avail Use% Mounted on
dev             5.3G     0  5.3G   0% /dev
run             5.3G  114M  5.2G   3% /run
/dev/sr0        3.0G  3.0G     0 100% /run/miso/bootmnt
cowspace        256M     0  256M   0% /run/miso/cowspace
overlay_root    7.9G   79M  7.9G   1% /run/miso/overlay_root
/dev/loop0      131M  131M     0 100% /run/miso/sfs/livefs
/dev/loop1      582M  582M     0 100% /run/miso/sfs/mhwdfs
/dev/loop2      1.5G  1.5G     0 100% /run/miso/sfs/desktopfs
/dev/loop3      703M  703M     0 100% /run/miso/sfs/rootfs
overlay         7.9G   79M  7.9G   1% /
tmpfs           5.3G     0  5.3G   0% /dev/shm
tmpfs           5.3G   53M  5.3G   1% /tmp
tmpfs           5.3G  2.4M  5.3G   1% /etc/pacman.d/gnupg
tmpfs           1.1G  104K  1.1G   1% /run/user/1000
Output of mount:
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sys on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
dev on /dev type devtmpfs (rw,nosuid,relatime,size=5480388k,nr_inodes=1370097,mode=755,inode64)
run on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755,inode64)
/dev/sr0 on /run/miso/bootmnt type iso9660 (ro,relatime,nojoliet,check=s,map=n,blocksize=2048,iocharset=utf8)
cowspace on /run/miso/cowspace type tmpfs (rw,relatime,size=262144k,mode=755,inode64)
overlay_root on /run/miso/overlay_root type tmpfs (rw,relatime,size=8264028k,mode=755,inode64)
/dev/loop0 on /run/miso/sfs/livefs type squashfs (ro,relatime)
/dev/loop1 on /run/miso/sfs/mhwdfs type squashfs (ro,relatime)
/dev/loop2 on /run/miso/sfs/desktopfs type squashfs (ro,relatime)
/dev/loop3 on /run/miso/sfs/rootfs type squashfs (ro,relatime)
overlay on / type overlay (rw,relatime,lowerdir=/run/miso/sfs/livefs:/run/miso/sfs/mhwdfs:/run/miso/sfs/desktopfs:/run/miso/sfs/rootfs,upperdir=/run/miso/overlay_root/upper,workdir=/run/miso/overlay_root/work,index=off,xino=off)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,inode64)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
cgroup2 on /sys/fs/cgroup type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate,memory_recursiveprot)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
none on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,relatime,mode=700)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=30,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=12054)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,pagesize=2M)
tracefs on /sys/kernel/tracing type tracefs (rw,nosuid,nodev,noexec,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime)
mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,size=5509352k,nr_inodes=409600,inode64)
configfs on /sys/kernel/config type configfs (rw,nosuid,nodev,noexec,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,nosuid,nodev,noexec,relatime)
tmpfs on /etc/pacman.d/gnupg type tmpfs (rw,relatime,mode=755,inode64)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=1101868k,nr_inodes=275467,mode=700,uid=1000,gid=1000,inode64)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)
Output of losetup:
NAME    SIZELIMIT OFFSET AUTOCLEAR RO BACK-FILE                                    DIO LOG-SEC
/dev/loop1
                0      0         0  1 /run/miso/bootmnt/manjaro/x86_64/mhwdfs.sfs    0     512
/dev/loop2
                0      0         0  1 /run/miso/bootmnt/manjaro/x86_64/desktopfs.sfs
                                                                                     0     512
/dev/loop0
                0      0         0  1 /run/miso/bootmnt/manjaro/x86_64/livefs.sfs    0     512
/dev/loop3
                0      0         0  1 /run/miso/bootmnt/manjaro/x86_64/rootfs.sfs    0     512
Let me know your thoughts. Thanks.
lcleary (1 rep)
Nov 22, 2021, 02:04 PM • Last activity: Nov 26, 2021, 12:37 PM
0 votes
0 answers
543 views
Unable to boot Oracle Linux in Virtual Box
I hope this is the right place to ask this question. I'm trying to install Oracle Linux 8.1. It works but then the reboot needed after the installation takes it back to the installation screen. It basically does not boot into the Oracle VM. I got an error when I tested the memory and it saved this:...
I hope this is the right place to ask this question. I'm trying to install Oracle Linux 8.1. It works but then the reboot needed after the installation takes it back to the installation screen. It basically does not boot into the Oracle VM. I got an error when I tested the memory and it saved this: enter image description here Is there a way to attach the error log? It's a long file
Simi (1 rep)
Jul 20, 2020, 01:20 PM
3 votes
2 answers
3837 views
Install Let's Encrypt SSL certificate on Oracle Linux Server
I am trying to install a Let's Encrypt certificate on a Oracle Linux Server 7.6. Since the server does not have a public IP, I had to validate via DNS.I followed the instructions here [https://github.com/joohoi/acme-dns-certbot-joohoi][1] and the validation worked and I got the certificate. How do I...
I am trying to install a Let's Encrypt certificate on a Oracle Linux Server 7.6. Since the server does not have a public IP, I had to validate via DNS.I followed the instructions here https://github.com/joohoi/acme-dns-certbot-joohoi and the validation worked and I got the certificate. How do I now install the certificate? I followed instructions online and moved the certificate to etc/ssl/certs and deleted the old certificate. After restarting the machine however the website does not work and I get an error site cannot be reached. I can interact with the server only via SSH.
cflasrado (33 rep)
Aug 1, 2019, 07:27 PM • Last activity: Nov 25, 2019, 08:53 PM
0 votes
1 answers
88 views
Oracle Virtual Box Appliance import
I am running Ubuntu 16.04 LTS. I am trying to use Oracle VM to load a Kali Linux operating system and get an error that I see is quite common with a lot of other people online. The thing is that most people run Windows and the solutions end up irrelevant to my case. I will include a screenshot of th...
I am running Ubuntu 16.04 LTS. I am trying to use Oracle VM to load a Kali Linux operating system and get an error that I see is quite common with a lot of other people online. The thing is that most people run Windows and the solutions end up irrelevant to my case. I will include a screenshot of the exact issue I am getting. I have tried to update, uninstall and install again. Still, the very same issue persists. Any assistance would be greatly appreciated since I do not know what else to do. Thank you in advance. enter image description here
Iliyana (1 rep)
Sep 4, 2019, 05:12 PM • Last activity: Sep 4, 2019, 05:34 PM
3 votes
2 answers
22022 views
How to have the login screen through VNC in Oracle Linux?
Basically what I am looking for is similar feature like RDP on Windows. I should be able to view the login screen through VNC Viewer. Even if server is restarted I should still be able to access it through VNC Viewer. Currently someone has to first obtain the console through OVM (these are all VMs),...
Basically what I am looking for is similar feature like RDP on Windows. I should be able to view the login screen through VNC Viewer. Even if server is restarted I should still be able to access it through VNC Viewer. Currently someone has to first obtain the console through OVM (these are all VMs), login and only then is it possible to remote through VNC Viewer. I know this question has been asked here previously [\[ref1\]][1] [\[ref2\]][2] also here but so far I have been unsuccessful in my attempts. Can anyone provide a detailed guide on how to go about achieving this? - OS: Oracle Linux 5 - VNC rpm : vnc-server-4.1.2-14.el5_6.6 Update 1 - VNC at User Level ------ Ok so I followed everything listed [here](https://superuser.com/questions/147109/automatically-start-vnc-server-on-startup) - Logged in to the server through PuTTY using root (because that's the acount I need to use for logging in through VNC). - Ran vncpasswd and set the VNC login password. - Saved the script as
/etc/init.d/vncserver
after changing the following parameters: - USER="root" - DISPLAY="1" - Did
+x /etc/init.d/vncserver
. - Did
--level 2345 vncserver on
. - Did
/root/.vnc/xstartup
and uncommented the lines:
unset SESSION_MANAGER
    exec /etc/X11/xinit/xinitrc
and changed last line from
&
to
&
(since I'm using GNOME). - Restarted the server. Now I could successfully remote to the server through VNC Viewer. This works even if server is restarted. However, **it bypasses the lock screen and does not prompt for password**. For this I had to set up a password through **System > Preferences > Remote Desktop**. **Important Note:** As @slm described below, this method provides VNC access at user level. Meaning you can create multiple users and provide them VNC access separately. Each user will have a unique desktop. This wasn't exactly what I was looking for though! Update 2 - VNC at System Level, like RDP on Windows ------ After implementing @slm's solution, I realised that this was what I actually had in mind when I asked this question. I followed exactly what he said. It's a lot simpler! Couple of things I would like to add: - I didn't need to install x11vnc. I used only the vnc rpm that was installed by default. - /etc/X11/xorg.conf file was missing. To create it I did the following: (Source) - As root run: Xorg :1 -configure. This will create the file /root/xorg.conf.new - cp /root/xorg.conf.new /etc/X11/xorg.conf I followed rest of the instructions. Restarted gdm and Voila! It worked! I was able to see the login screen through VNC Viewer, exactly like RDP on Windows. It worked even after server restart. Great!
Gh0sT (266 rep)
Jan 17, 2014, 06:10 AM • Last activity: Jul 11, 2019, 07:33 AM
1 votes
1 answers
5829 views
How to install Guest Additions with a Oracle Gnu/Linux guest on VirtualBox?
I have a Linux virtual box and want to install Guest Additions. I've successfully mounted the iso. But now what...? How can I access the mounted cd-rom in the terminal of the virtual machine as to install Guest Additions? When I `cd media` then `ls` returns empty. [![enter image description here][1]...
I have a Linux virtual box and want to install Guest Additions. I've successfully mounted the iso. But now what...? How can I access the mounted cd-rom in the terminal of the virtual machine as to install Guest Additions? When I cd media then ls returns empty. enter image description here
Marty (133 rep)
May 24, 2019, 07:01 PM • Last activity: May 27, 2019, 06:31 PM
0 votes
0 answers
150 views
tcpdumping virtual network on the Oracle Virtual Server
Is there a way to enable proper promiscuous mode in Oracle Virtual Server based virtual network? It seems like card is getting only some percents of total network traffic. I have tried all of the network types which are available on the Oracle Virtual Manager infrastructure. Simplest possible case:...
Is there a way to enable proper promiscuous mode in Oracle Virtual Server based virtual network? It seems like card is getting only some percents of total network traffic. I have tried all of the network types which are available on the Oracle Virtual Manager infrastructure. Simplest possible case: "local" virtual network of three hosts, file is being transmitted from one to second host, third host is trying to tcpdump network. File is successfully transmitted, but third host has got only one packet from the start of file transfer. I think it should be finetuned by usage of some xl commands. It can be some common problem on all of the Xen based virtualizations. What should be done to get traffic be seen to other network participants? All network interfaces were created like with OVM> create vnic name=capture_network_card network=local on vm id=${id} where 'local' is the name of the virtual network type. File transfer console log: 1.2.3.6# scp 1.2.3.4:*p ./ /etc/ssh/ssh_config line 57: Unsupported option "gssapiauthentication" 1.2.3.4's password: file.pp 100% 126MB 110.5MB/s 00:01 Tcpdump on the third host: -sh# tcpdump -i eth6 tcpdump: WARNING: eth6: no IPv4 address assigned tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on eth6, link-type EN10MB (Ethernet), capture size 65535 bytes 08:42:12.456647 IP 1.2.3.6.37610 > 1.2.3.4.ssh: Flags [S], seq 2743878644, win 29200, options [mss 1460,nop,wscale 10], length 0 ^C 1 packet captured 1 packet received by filter 0 packets dropped by kernel OVM 'local' network: OVM> show network name=local Command: show network name=local Status: Success Time: 2019-04-17 11:13:29,434 EDT Data: Server Local = true Server = b0:3c:4c:3a:75:fe:d5:11:88:cc:18:bb:00:30:c5:db [vmserver2] MTU = 1500 Role 1 = Virtual Machine Vnic 1 = 0004fb0000070000591e972d7b9043d0 [local_card_va11] Vnic 2 = 0004fb00000700007d493cbb2938f30e [local_capture_on_3_29] Vnic 3 = 0004fb00000700005d89961ae7d76d23 [local_capture_network_card] Vnic 4 = 0004fb000007000075309ee8253700e8 [local_card_va9] Id = 105e4d86c5 [local] Name = local Locked = false There is some other cards here at present, but they are irrelevant to the problem. I tried to create other hosts/cards but without any success in traffic capture. Further findings: If replay some PCAP files on such a network, capture card will see only some ICMP and ARP packets. It will see other packets only if replay traffic directly to the virtual host network adapter. I determine this adapters on the server through OVM and OVS consoles: [ovm]# exec 'list network'|grep local id:105e4d86c5 name:local So the **105e4d86c5** is the network id. Searching on the vmserver interfaces from this network **105e4d86c5** [root@vmserver2 ~]# ip a |grep 105e4d86c5 16: 105e4d86c5: mtu 1500 qdisc noqueue state UP 19: vif1.2: mtu 1500 qdisc mq master 105e4d86c5 state UP qlen 32 37: vif3.6: mtu 1500 qdisc mq master 105e4d86c5 state DOWN qlen 32 44: vif3.6-emu: mtu 1500 qdisc pfifo_fast master 105e4d86c5 state UNKNOWN qlen 500 if I tcpreplay traffic directly to this vif* adapters - their virtual hosts can tcpdump this packets for sure. But, if I run tcpreplay on virtual host and tcpdump on server - there will be no traffic again, tcpdump prints about packets 'dropped by kernel'. I have very little experience with Xen, but the same configuration in VMWare is working like a charm. Is there way at all to get working packet sniffing in oracle virtual network?
Vladimir Kunschikov (111 rep)
Apr 18, 2019, 05:33 AM • Last activity: Apr 18, 2019, 11:18 AM
1 votes
0 answers
2037 views
Problem with starting Oracle Linux after Migrating form OVM to hyper-v
I am planing to move form OVM to hyper-v, in-order to do the migration, I shutdown OVM (VM is using Oracle Linux 7.2) normally, then exported the appliance from OVM Console, move it to Windows machine then convert it to vhdx file using StarWind V2V Image Converter. When I start the converted VM and...
I am planing to move form OVM to hyper-v, in-order to do the migration, I shutdown OVM (VM is using Oracle Linux 7.2) normally, then exported the appliance from OVM Console, move it to Windows machine then convert it to vhdx file using StarWind V2V Image Converter. When I start the converted VM and try to use (Oracle Linux Server (3.10.0-327.el7.x86_64 with linux) 7.2 everything is working fine without any issue, how ever if I use (Oracle Linux Server (3.8.13-98.7.1.el7uek.x86_64 with unbreakable Enterprise Linux) I got Dracut rescue mode with the following error message (shown in the attached image) enter image description here I searched from some solution regarding this issue like executing dracut -f, edit /etc/fstab manually (note the file appears fstab.empty creating a file manually did not help at all), check if I can edit /etc/default/grub but the file dose not exist either, removing the corrupted kernel using rpm -e I got the following error "kernel dose not exit" but if I try to install it using yum or rpm it failed since the kernel exist, I have tried to fix the LVM using the solution on Redhat portal , but I got the following error message "/run/lvm/lvmetad.socket: connect failed: no such file or directory" (attaching a screen shot) enter image description here For further troubleshooting I opened "/run/initramfs/rdsosreport.txt " file and found it contains errors as shown in the screen show below enter image description here I tried to execute the commands bellow but it filed /bin/sh no such file or directory mount --bind /proc /mnt/sysimage/proc mount --bind /dev /mnt/sysimage/dev mount --bind /sys /mnt/sysimage/sys chroot /mnt/sysimage dracut -f exit cd / sync telinit 6
Ahmad Abuhasna (673 rep)
Aug 5, 2018, 07:41 AM • Last activity: Mar 9, 2019, 09:19 AM
2 votes
1 answers
24622 views
Keytool utility not available
I know that in order to use keytool, JDK must be installed -- which it is in my server -- but the keytool utility is not available. [root@Linux ~]$ java -version openjdk version "1.8.0_181" OpenJDK Runtime Environment (build 1.8.0_181-b13) OpenJDK 64-Bit Server VM (build 25.181-b13, mixed mode) [roo...
I know that in order to use keytool, JDK must be installed -- which it is in my server -- but the keytool utility is not available. [root@Linux ~]$ java -version openjdk version "1.8.0_181" OpenJDK Runtime Environment (build 1.8.0_181-b13) OpenJDK 64-Bit Server VM (build 25.181-b13, mixed mode) [root@Linux ~]$ [root@Linux ~]$ which keytool /usr/bin/which: no keytool in (/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/opc/bin:/sbin:/usr/sbin) [root@Linux ~]$ [root@Linux ~]$ locate keytool /etc/alternatives/keytool /etc/alternatives/keytool.1.gz /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.181-3.b13.el6_10.x86_64/jre/bin/keytool /usr/share/man/man1/keytool-java-1.8.0-openjdk-1.8.0.181-3.b13.el6_10.x86_64.1.gz /usr/share/man/man1/keytool.1.gz How can I fix this?
muku (51 rep)
Oct 18, 2018, 04:35 PM • Last activity: Oct 18, 2018, 05:11 PM
1 votes
2 answers
895 views
Upgrading Solaris zone to solaris 11
We have solaris zones running in [Sparc T5](https://blogs.oracle.com/orasysat/the-sparc-t5-servers-have-landed) server Currently a solaris zone run Solaris 10 OS version. $uname -a SunOS zone01 5.10 Generic_150400-30 sun4v sparc sun4v Going further, we would like this zone to run Solaris 11 OS versi...
We have solaris zones running in [Sparc T5](https://blogs.oracle.com/orasysat/the-sparc-t5-servers-have-landed) server Currently a solaris zone run Solaris 10 OS version. $uname -a SunOS zone01 5.10 Generic_150400-30 sun4v sparc sun4v Going further, we would like this zone to run Solaris 11 OS version, because Solaris 10 OS is going End of Support. ------------------------------------- Critical goal is: We do not want to build new solaris zones(Solaris OS 11) at any cost. We want existing zones to get upgraded to Solaris 11. Why do we use these zones? Because we have a business application running on it, which is the actual usage scenario. My understanding for upgrade of zone is, shut down all solaris zones and upgrade Sparc T5 server(not solaris zone) from solaris 10 to solaris 11. Start solaris zones after upgrade of Sparc T5 server. What is the recommended approach to upgrade an OS of an existing solaris zone? Edit: I read that: "We can simply detach a Zone from one Global Zone (OS) and attach it to another Global Zone on another machine along with the application." Can't a solaris 10 zone be migrated from version 10 global zone to version 11 global zone? And then upgrade the migrated zone...
overexchange (1596 rep)
Aug 3, 2018, 06:06 PM • Last activity: Aug 3, 2018, 10:52 PM
1 votes
1 answers
10011 views
What's missing in my grub2 configuration for PxE
I'm trying to automate the installation of physical servers using PxE. In this case I'm installing Oracle Virtual Servers (OVS for short, RHEL/Centos-like systems with Xen and custom linux kernel). I followed the [steps outlined][1] in [the official documentation][2] and implemented them using ansib...
I'm trying to automate the installation of physical servers using PxE. In this case I'm installing Oracle Virtual Servers (OVS for short, RHEL/Centos-like systems with Xen and custom linux kernel). I followed the steps outlined in the official documentation and implemented them using ansible. To summarize I took in account some important notes: - I'm using version 3.4.2 so I'm building my own boot loader for UEFI-based PXE clients. - I'm using Oracle Linux 7.3 since it provides the grub2-tools package that is required to build the GRUB2 boot loader. With ansible I configured my tftp, dhcp and http servers (for simplicity all of them in the same box) which all seem to be working as expected (tested downloading files and IP assignment and everything works). Here is how I'm building the boot loader $ grub2-mkimage -p '(tftp,)' -O x86_64-efi -d -c -o /core.efi Here is the current state of my grub2.cfg file: set timeout=60 # Load modules insmod net insmod efinet insmod tftp insmod gzio insmod part_gpt insmod efi_gop insmod efi_uga insmod video_bochs insmod video_cirrus insmod all_video insmod ext2 insmod multiboot2 insmod normal menuentry 'Install Oracle VM Server 3.4.2' --class fedora --class gnu-linux --class gnu --class os { # dhcp, tftp server in my network set net_default_server= # This is for testing echo 'Network status: ' net_ls_addr net_ls_routes echo 'Loading Xen...' multiboot2 /isolinux/xen.gz dom0_mem=max:11582M dom0_max_vcpus=20 noreboot echo 'Loading Linux Kernel...' module2 /isolinux/vmlinuz ip=dhcp vlanid= repo=http:///pxelinux/ISOs/OVS3.4.2 ks=http:///pxelinux/kickstart/ovs-3.4.2.ks ksdevice= echo 'Loading initrd...' module2 /isolinux/initrd.img } The server boots properly, the IP is being set, both the core.efi image and the grub2.cfg file are being downloaded from the tftp server and I get the "Welcome to Grub!" message but just when it should run what's configured in the grub2.cfg file this happens: //Start PXE Over IPv4 Station IP Address is X.X.X.X Server IP Address is X.X.X.X NBP filename is /boot/grub2/core.efi NBP filesize is 397824 Bytes Downloading NBP file... Succeed to download NBP file. Downloading NBP file... Succeed to download NBP file. Welcome to GRUB! Unknown command 'menuentry'. Unknown command '#'. Unknown command '#'. Unknown command 'echo'. efinet0 efinet0:local / efinet0 efinet0:default 0.0.0.0/0 gw Unknown command 'echo'. Unknown command 'echo'. Unknown command 'echo'. Unknown command '}'. And finally I'm directed to the grub prompt, where I can type all the commands in the grub2.cfg file correctly and actually boot and install my system with kickstart. So I'm guessing I'm missing something in the grub2 image creation because it's like some modules are not being imported before running the grub2.cfg file?? Only certain commands are being run, the rest are "Unknown".
Nocturn (153 rep)
Sep 8, 2017, 05:38 PM • Last activity: Sep 15, 2017, 04:21 PM
1 votes
0 answers
57 views
Oracle VM CPU usage at 100% even if only 3 out of 4 cores assigned
I'm running a linux VM guest inside a Win10 host. I assigned 3 cpu cores to the VM (out of the 4 cores of my i7 6600K). When compiling some big software package I run make -j3 and then looked at the CPU usage in Win10 Task Manager it's pegged at > 95%. I was naively expecting something around 75 or...
I'm running a linux VM guest inside a Win10 host. I assigned 3 cpu cores to the VM (out of the 4 cores of my i7 6600K). When compiling some big software package I run make -j3 and then looked at the CPU usage in Win10 Task Manager it's pegged at > 95%. I was naively expecting something around 75 or 80%. Anyone knows what's going on? Screenshot: Here a screenshot of the problem
Valerio Formato (11 rep)
Jan 14, 2017, 02:48 PM
4 votes
0 answers
1869 views
Failed UDEV rules test on Oracle Linux 7
I wrote my UDEV rules, to configure asm devices as shown: KERNEL=="sd?1", SUBSYSTEM=="block", PROGRAM=="/usr/lib/udev/scsi_id -g -u -d /dev/$parent", RESULT=="1ATA_VBOX_HARDDISK_VB40696d3c-4b65a1e9", SYMLINK+="oracleasm/asm-disk1", OWNER="oracle", GROUP="dba", MODE="0660" KERNEL=="sd?1", SUBSYSTEM==...
I wrote my UDEV rules, to configure asm devices as shown: KERNEL=="sd?1", SUBSYSTEM=="block", PROGRAM=="/usr/lib/udev/scsi_id -g -u -d /dev/$parent", RESULT=="1ATA_VBOX_HARDDISK_VB40696d3c-4b65a1e9", SYMLINK+="oracleasm/asm-disk1", OWNER="oracle", GROUP="dba", MODE="0660" KERNEL=="sd?1", SUBSYSTEM=="block", PROGRAM=="/usr/lib/udev/scsi_id -g -u -d /dev/$parent", RESULT=="1ATA_VBOX_HARDDISK_VB131c87f1-9a5b7135", SYMLINK+="oracleasm/asm-disk2", OWNER="oracle", GROUP="dba", MODE="0660" KERNEL=="sd?1", SUBSYSTEM=="block", PROGRAM=="/usr/lib/udev/scsi_id -g -u -d /dev/$parent", RESULT=="1ATA_VBOX_HARDDISK_VB3d0db51a-8fe749fa", SYMLINK+="oracleasm/asm-disk3", OWNER="oracle", GROUP="dba", MODE="0660" KERNEL=="sd?1", SUBSYSTEM=="block", PROGRAM=="/usr/lib/udev/scsi_id -g -u -d /dev/$parent", RESULT=="1ATA_VBOX_HARDDISK_VB93d904b0-66a29d8f", SYMLINK+="oracleasm/asm-disk4", OWNER="oracle", GROUP="dba", MODE="0660" But The following error pops up when test the first disk with this /sbin/udevadm test /block/sdb/sdb1: /sbin/udevadm test /block/sdb/sdb1 calling: test version 219 This program is for debugging only, it does not run any program specified by a RUN key. It may show incorrect results, because some values may be different, or not available at a simulation run. === trie on-disk === tool version: 219 file size: 7014922 bytes header size 80 bytes strings 1806418 bytes nodes 5208424 bytes Load module index Created link configuration context. timestamp of '/etc/udev/rules.d' changed Reading rules file: /usr/lib/udev/rules.d/10-dm.rules Reading rules file: /usr/lib/udev/rules.d/100-balloon.rules Reading rules file: /usr/lib/udev/rules.d/11-dm-lvm.rules Reading rules file: /usr/lib/udev/rules.d/11-dm-mpath.rules Reading rules file: /usr/lib/udev/rules.d/13-dm-disk.rules Reading rules file: /usr/lib/udev/rules.d/40-libgphoto2.rules IMPORT found builtin 'usb_id --export %%p', replacing /usr/lib/udev/rules.d/40-libgphoto2.rules:11 Reading rules file: /usr/lib/udev/rules.d/40-redhat.rules Reading rules file: /usr/lib/udev/rules.d/40-usb_modeswitch.rules Reading rules file: /usr/lib/udev/rules.d/42-usb-hid-pm.rules Reading rules file: /usr/lib/udev/rules.d/50-rbd.rules Reading rules file: /usr/lib/udev/rules.d/50-udev-default.rules Reading rules file: /usr/lib/udev/rules.d/56-hpmud.rules Reading rules file: /usr/lib/udev/rules.d/60-alias-kmsg.rules Reading rules file: /usr/lib/udev/rules.d/60-cdrom_id.rules Reading rules file: /usr/lib/udev/rules.d/60-drm.rules Reading rules file: /usr/lib/udev/rules.d/60-fprint-autosuspend.rules Reading rules file: /usr/lib/udev/rules.d/60-keyboard.rules Reading rules file: /usr/lib/udev/rules.d/60-net.rules Reading rules file: /usr/lib/udev/rules.d/60-persistent-alsa.rules Reading rules file: /usr/lib/udev/rules.d/60-persistent-input.rules Reading rules file: /usr/lib/udev/rules.d/60-persistent-serial.rules Reading rules file: /usr/lib/udev/rules.d/60-persistent-storage-tape.rules Reading rules file: /usr/lib/udev/rules.d/60-persistent-storage.rules Reading rules file: /usr/lib/udev/rules.d/60-persistent-v4l.rules Reading rules file: /usr/lib/udev/rules.d/60-raw.rules Reading rules file: /etc/udev/rules.d/60-vboxadd.rules Reading rules file: /usr/lib/udev/rules.d/61-accelerometer.rules Reading rules file: /usr/lib/udev/rules.d/61-gnome-bluetooth-rfkill.rules Reading rules file: /usr/lib/udev/rules.d/61-gnome-settings-daemon-rfkill.rules Reading rules file: /usr/lib/udev/rules.d/62-multipath.rules Reading rules file: /usr/lib/udev/rules.d/63-md-raid-arrays.rules Reading rules file: /usr/lib/udev/rules.d/64-btrfs.rules Reading rules file: /usr/lib/udev/rules.d/65-libwacom.rules Reading rules file: /usr/lib/udev/rules.d/65-md-incremental.rules Reading rules file: /usr/lib/udev/rules.d/65-sane-backends.rules Reading rules file: /usr/lib/udev/rules.d/69-cd-sensors.rules Reading rules file: /usr/lib/udev/rules.d/69-dm-lvm-metad.rules Reading rules file: /usr/lib/udev/rules.d/69-libmtp.rules Reading rules file: /usr/lib/udev/rules.d/69-xorg-vmmouse.rules Reading rules file: /usr/lib/udev/rules.d/70-mouse.rules Reading rules file: /etc/udev/rules.d/70-persistent-ipoib.rules Reading rules file: /usr/lib/udev/rules.d/70-power-switch.rules Reading rules file: /usr/lib/udev/rules.d/70-printers.rules Reading rules file: /usr/lib/udev/rules.d/70-spice-vdagentd.rules Reading rules file: /usr/lib/udev/rules.d/70-touchpad-quirks.rules Reading rules file: /usr/lib/udev/rules.d/70-touchpad.rules Reading rules file: /usr/lib/udev/rules.d/70-uaccess.rules Reading rules file: /usr/lib/udev/rules.d/70-wacom.rules Reading rules file: /usr/lib/udev/rules.d/71-biosdevname.rules Reading rules file: /usr/lib/udev/rules.d/71-seat.rules Reading rules file: /usr/lib/udev/rules.d/73-idrac.rules Reading rules file: /usr/lib/udev/rules.d/73-seat-late.rules Reading rules file: /usr/lib/udev/rules.d/75-net-description.rules Reading rules file: /usr/lib/udev/rules.d/75-probe_mtd.rules Reading rules file: /usr/lib/udev/rules.d/75-tty-description.rules Reading rules file: /usr/lib/udev/rules.d/77-mm-ericsson-mbm.rules Reading rules file: /usr/lib/udev/rules.d/77-mm-huawei-net-port-types.rules Reading rules file: /usr/lib/udev/rules.d/77-mm-longcheer-port-types.rules Reading rules file: /usr/lib/udev/rules.d/77-mm-nokia-port-types.rules Reading rules file: /usr/lib/udev/rules.d/77-mm-pcmcia-device-blacklist.rules Reading rules file: /usr/lib/udev/rules.d/77-mm-platform-serial-whitelist.rules Reading rules file: /usr/lib/udev/rules.d/77-mm-simtech-port-types.rules Reading rules file: /usr/lib/udev/rules.d/77-mm-telit-port-types.rules Reading rules file: /usr/lib/udev/rules.d/77-mm-usb-device-blacklist.rules Reading rules file: /usr/lib/udev/rules.d/77-mm-usb-serial-adapters-greylist.rules Reading rules file: /usr/lib/udev/rules.d/77-mm-x22x-port-types.rules Reading rules file: /usr/lib/udev/rules.d/77-mm-zte-port-types.rules Reading rules file: /usr/lib/udev/rules.d/78-sound-card.rules Reading rules file: /usr/lib/udev/rules.d/80-drivers.rules Reading rules file: /usr/lib/udev/rules.d/80-kvm.rules Reading rules file: /usr/lib/udev/rules.d/80-mm-candidate.rules Reading rules file: /usr/lib/udev/rules.d/80-net-name-slot.rules Reading rules file: /usr/lib/udev/rules.d/80-net-setup-link.rules Reading rules file: /usr/lib/udev/rules.d/80-udisks2.rules Reading rules file: /usr/lib/udev/rules.d/81-kvm-rhel.rules Reading rules file: /usr/lib/udev/rules.d/85-nm-unmanaged.rules Reading rules file: /usr/lib/udev/rules.d/85-regulatory.rules Reading rules file: /usr/lib/udev/rules.d/85-usbmuxd.rules Reading rules file: /usr/lib/udev/rules.d/90-alsa-restore.rules Reading rules file: /usr/lib/udev/rules.d/90-alsa-tools-firmware.rules Reading rules file: /usr/lib/udev/rules.d/90-iprutils.rules Reading rules file: /usr/lib/udev/rules.d/90-pulseaudio.rules Reading rules file: /usr/lib/udev/rules.d/90-vconsole.rules Reading rules file: /usr/lib/udev/rules.d/91-drm-modeset.rules Reading rules file: /usr/lib/udev/rules.d/95-cd-devices.rules Reading rules file: /usr/lib/udev/rules.d/95-dm-notify.rules Reading rules file: /usr/lib/udev/rules.d/95-udev-late.rules Reading rules file: /usr/lib/udev/rules.d/95-upower-csr.rules Reading rules file: /usr/lib/udev/rules.d/95-upower-hid.rules Reading rules file: /usr/lib/udev/rules.d/95-upower-wup.rules Reading rules file: /usr/lib/udev/rules.d/98-kexec.rules Reading rules file: /usr/lib/udev/rules.d/98-rdma.rules Reading rules file: /etc/udev/rules.d/99-oracle-asmdevices.rules Reading rules file: /usr/lib/udev/rules.d/99-qemu-guest-agent.rules Reading rules file: /usr/lib/udev/rules.d/99-systemd.rules Reading rules file: /etc/udev/rules.d/99-vmware-scsi-timeout.rules rules contain 393216 bytes tokens (32768 * 12 bytes), 32235 bytes strings 29804 strings (247631 bytes), 26864 de-duplicated (218337 bytes), 2941 trie nodes used GROUP 6 /usr/lib/udev/rules.d/50-udev-default.rules:52 LINK 'disk/by-id/ata-VBOX_HARDDISK_VB35ea20aa-deda408b-part1' /usr/lib/udev/rules.d/60-persistent-storage.rules:43 IMPORT builtin 'blkid' /usr/lib/udev/rules.d/60-persistent-storage.rules:72 probe /dev/sdb1 raid offset=0 PROGRAM '/usr/lib/udev/scsi_id -g -u -d /dev/sdb' /etc/udev/rules.d/99-oracle-asmdevices.rules:1 starting '/usr/lib/udev/scsi_id -g -u -d /dev/sdb' '/usr/lib/udev/scsi_id -g -u -d /dev/sdb'(out) '1ATA_VBOX_HARDDISK_VB35ea20aa-deda408b' '/usr/lib/udev/scsi_id -g -u -d /dev/sdb' exit with return code 0 OWNER 54321 /etc/udev/rules.d/99-oracle-asmdevices.rules:1 GROUP 54322 /etc/udev/rules.d/99-oracle-asmdevices.rules:1 MODE 0660 /etc/udev/rules.d/99-oracle-asmdevices.rules:1 LINK 'oracleasm/asm-disk1' /etc/udev/rules.d/99-oracle-asmdevices.rules:1 PROGRAM '/usr/lib/udev/scsi_id -g -u -d /dev/sdb' /etc/udev/rules.d/99-oracle-asmdevices.rules:2 starting '/usr/lib/udev/scsi_id -g -u -d /dev/sdb' '/usr/lib/udev/scsi_id -g -u -d /dev/sdb'(out) '1ATA_VBOX_HARDDISK_VB35ea20aa-deda408b' '/usr/lib/udev/scsi_id -g -u -d /dev/sdb' exit with return code 0 PROGRAM '/usr/lib/udev/scsi_id -g -u -d /dev/sdb' /etc/udev/rules.d/99-oracle-asmdevices.rules:3 starting '/usr/lib/udev/scsi_id -g -u -d /dev/sdb' '/usr/lib/udev/scsi_id -g -u -d /dev/sdb'(out) '1ATA_VBOX_HARDDISK_VB35ea20aa-deda408b' '/usr/lib/udev/scsi_id -g -u -d /dev/sdb' exit with return code 0 PROGRAM '/usr/lib/udev/scsi_id -g -u -d /dev/sdb' /etc/udev/rules.d/99-oracle-asmdevices.rules:4 starting '/usr/lib/udev/scsi_id -g -u -d /dev/sdb' '/usr/lib/udev/scsi_id -g -u -d /dev/sdb'(out) '1ATA_VBOX_HARDDISK_VB35ea20aa-deda408b' '/usr/lib/udev/scsi_id -g -u -d /dev/sdb' exit with return code 0 handling device node '/dev/sdb1', devnum=b8:17, mode=0660, uid=54321, gid=54322 preserve permissions /dev/sdb1, 060660, uid=54321, gid=54322 preserve already existing symlink '/dev/block/8:17' to '../sdb1' found 'b8:17' claiming '/run/udev/links/\x2fdisk\x2fby-id\x2fata-VBOX_HARDDISK_VB35ea20aa-deda408b-part1' creating link '/dev/disk/by-id/ata-VBOX_HARDDISK_VB35ea20aa-deda408b-part1' to '/dev/sdb1' preserve already existing symlink '/dev/disk/by-id/ata-VBOX_HARDDISK_VB35ea20aa-deda408b-part1' to '../../sdb1' found 'b8:17' claiming '/run/udev/links/\x2foracleasm\x2fasm-disk1' creating link '/dev/oracleasm/asm-disk1' to '/dev/sdb1' creating symlink '/dev/oracleasm/asm-disk1' to '../sdb1' atomically replace '/dev/oracleasm/asm-disk1' ***symlink '../sdb1' '/dev/oracleasm/asm-disk1.tmp-b8:17' failed: Operation not permitted*** created db file '/run/udev/data/b8:17' for '/block/sdb/sdb1' .ID_FS_TYPE_NEW= ACTION=add DEVLINKS=/dev/disk/by-id/ata-VBOX_HARDDISK_VB35ea20aa-deda408b-part1 /dev/oracleasm/asm-disk1 DEVNAME=/dev/sdb1 DEVPATH=/block/sdb/sdb1 DEVTYPE=partition ID_ATA=1 ID_ATA_FEATURE_SET_PM=1 ID_ATA_FEATURE_SET_PM_ENABLED=1 ID_ATA_SATA=1 ID_ATA_SATA_SIGNAL_RATE_GEN2=1 ID_ATA_WRITE_CACHE=1 ID_ATA_WRITE_CACHE_ENABLED=1 ID_BUS=ata ID_FS_TYPE= ID_MODEL=VBOX_HARDDISK ID_MODEL_ENC=VBOX\x20HARDDISK\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20 ID_PART_ENTRY_DISK=8:16 ID_PART_ENTRY_NUMBER=1 ID_PART_ENTRY_OFFSET=2048 ID_PART_ENTRY_SCHEME=dos ID_PART_ENTRY_SIZE=10483712 ID_PART_ENTRY_TYPE=0x83 ID_PART_TABLE_TYPE=dos ID_REVISION=1.0 ID_SERIAL=VBOX_HARDDISK_VB35ea20aa-deda408b ID_SERIAL_SHORT=VB35ea20aa-deda408b ID_TYPE=disk MAJOR=8 MINOR=17 SUBSYSTEM=block TAGS=:systemd: USEC_INITIALIZED=79251 Unload module index Unloaded link configuration context. Any hints?
user178850 (41 rep)
Jul 8, 2016, 10:23 PM • Last activity: Dec 28, 2016, 07:23 AM
0 votes
1 answers
3382 views
xclock not runnnig for another user
I have install new solaris 10 in Virtual box in my pc. I have set below command as a root user. bash-3.2#export DISPLAY=":0.0" DISPLAY bash-3.2#xclock It is working fine for root user but I have another user named: mamun I have run xclock for "mamun" but it shows below error message. $xclock Xlib: c...
I have install new solaris 10 in Virtual box in my pc. I have set below command as a root user. bash-3.2#export DISPLAY=":0.0" DISPLAY bash-3.2#xclock It is working fine for root user but I have another user named: mamun I have run xclock for "mamun" but it shows below error message. $xclock Xlib: connection to ":0.0" refused by server Xlib: No protocol specified Error: Can't open display: :0.0 How can I solve this problem?
mamun06 (41 rep)
Apr 21, 2016, 07:03 AM • Last activity: Apr 21, 2016, 07:07 AM
Showing page 1 of 20 total questions